JNI global refs

Marcus G. Daniels mgd@swarm.org
Tue Jun 26 18:21:00 GMT 2001


I think the pointers returned by JNI NewGlobalRef be allocated using
GC_malloc_uncollectable. The way it is now, if you store one of these
in malloced space (as opposed to GC_malloced space) the garbage
collector may come along and think it is free to take it.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /