JNI patches
Jeff Sturm
jsturm@one-point.com
Mon Apr 2 16:06:00 GMT 2001
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
More information about the Java
mailing list