Patch: Document and prototype JvAllocBytes() for CNI

Bryce McKinlay mckinlay@redhat.com
Tue May 25 19:09:00 GMT 2004


Paul Gear wrote:
>More questions along the same topic: has _Jv_AllocBytes been deprecated
>or something? It appears in the doco at
>http://gcc.gnu.org/java/papers/cni/t1308.html
>and
>http://gcc.gnu.org/onlinedocs/gcj/Object-allocation.html#Object%20allocation
>but when i try to use it it is not defined.
>>Yeah, it looks like this function is documented but not actually 
declared in cni.h which is odd. This patch adds the appropriate 
declaration (which is JvAllocBytes, not _Jv_AllocBytes), and improves 
the documentation a bit. I'll be checking it in shortly.
>(I'm also not sure which one of the above doco links i should be working
>from. I'm using gcc 3.3.1 on Red Hat Linux 9.)
>>Also, assuming _Jv_AllocBytes() is still the right thing to use, does it
>return zeroed memory?
>>Yes.
Regards
Bryce
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cni-jvallocbytes.patch
Type: text/x-patch
Size: 2762 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java/attachments/20040525/f7234239/attachment.bin>


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /