dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnet/include il_types.h,1.20,1.21


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/include il_types.h,1.20,1.21
Date: Wed, 16 Jul 2003 19:44:17 -0400

Update of /cvsroot/dotgnu-pnet/pnet/include
In directory subversions:/tmp/cvs-serv923/include

Modified Files:
        il_types.h 
Log Message:


Add the function "ILTypeFindOrCreateArray", which will attempt to locate an
array type in the synthetic hash before creating a new one; this is used to
prevent unlimited memory growth in loop bodies that allocate arrays.


Index: il_types.h
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/include/il_types.h,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -r1.20 -r1.21
*** il_types.h  14 Apr 2003 04:42:09 -0000      1.20
--- il_types.h  16 Jul 2003 23:44:15 -0000      1.21
***************
*** 296,299 ****
--- 296,308 ----
  
  /*
+  * Create an array type after first checking for a matching synthetic
+  * class.  This is more memory efficient than "ILTypeCreateArray",
+  * but can only be used when "elem" won't change.  Returns NULL if
+  * out of memory.
+  */
+ ILType *ILTypeFindOrCreateArray(ILContext *context, unsigned long rank,
+                                                       ILType *elem);
+ 
+ /*
   * Set the size for a particular array dimension.
   */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]