jvm.h vs java-gc.h
Tom Tromey
tromey@cygnus.com
Thu Apr 13 10:37:00 GMT 2000
Bryce> Is there a reason why the declarations of functions like
Bryce> _Jv_AllocBytes, _Jv_RegisterWeakReference, etc shouldn't be
Bryce> moved into the boehm-gc.h and no-gc.h.
Bryce> This way, we could declare some of these simple functions as
Bryce> "inline", like we do in posix-threads.h, which should buy a
Bryce> little extra speed.
We could do that. In most cases I imagine it doesn't make a
difference -- but with the weak ref stuff in the patch I sent you it
probably does.
Including the Boehm gc.h in boehm-gc.h might be a problem, though. It
might be better to just declare the appropriate GC functions in the
definition of the _Jv_ wrappers.
Tom
More information about the Java
mailing list