This is the mail archive of the java@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]

RE: JNI patches




On Mon, 2 Apr 2001, Boehm, Hans wrote:
> The collector normally does not scan objects allocated with C malloc (except
> on one or two platforms where that's hard to avoid).  The easiest way to
> change that is to redirect the C malloc to GC_malloc_uncollectable, but that
> sometimes creates startup ordering issues.  It should work on Linux, but I'm
> not sure about various other platforms.

It's not a general solution.  For one thing, with JNI invocation programs 
are free to startup (and bind to malloc, etc.) before loading the gcj
runtime.

I don't see how local refs are avoidable if JNI is going to work.  There
are probably faster ways to handle them, though.  (I'm not worried about
global refs, which are relatively uncommon.)

Jeff



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