This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] make gij command-line compatible with java


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]