[patch] make gij command-line compatible with java

Bryce McKinlay mckinlay@redhat.com
Sat Apr 2 20:15:00 GMT 2005


Tom Tromey wrote:

>Tom> +extern inline void *
>Tom> +JvRealloc (void *ptr, jsize size)
>Tom> +{
>Tom> +  return _Jv_Realloc (ptr, size);
>Tom> +}
>
>We only need a wrapper like this if we want to export it to the world.
>I don't care either way in this case.
>
>Hmm, JvMalloc and friends don't seem to be documented in the CNI part
>of the manual :-(
>  
>
Yeah, I'm not sure if it makes much sense to export/document these 
functions. CNI applications are likely to have their own code that calls 
malloc() directly anyway, so even if for some reason in the future we 
wanted to point JvMalloc at the GC or something, it wouldn't have a big 
effect.

So, perhaps we should just remove (or deprecate?) JvMalloc() and 
JvFree(), and certainly not add JvRealloc().

Bryce



More information about the Java-patches mailing list