Patch: Add JvAllocBytes() and RawDataManaged to CNI

Bryce McKinlay mckinlay@redhat.com
Fri May 28 18:53:00 GMT 2004


This patch adds a new RawDataManaged type to CNI. This is used like 
RawData except the pointer will be marked by the garbage collector, so 
memory allocated by GC functions such as JvAllocBytes() can be stored in 
RawDataManaged fields and may be automatically freed when the object 
itself becomes unreachable. This gives us a way to explicity specify 
native data fields rather than using "Object", which is ugly and 
potentially unsafe.

The patch also officially adds JvAllocBytes() to the CNI interface and 
documents it.

I'm checking this in to mainline.

Regards

Bryce


-------------- next part --------------
A non-text attachment was scrubbed...
Name: cni-jvallocbytes-2.patch
Type: text/x-patch
Size: 8969 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040528/57746e2f/attachment.bin>


More information about the Java-patches mailing list