Synchronization between JNI & GC

Jungwoo Ha jwha at google.com
Wed Apr 2 21:00:13 UTC 2014


Is there a good write up on how the synchronization happen between JNI and
GC?
I am looking at the NewGlobalRef code but it has assert statement like this:

assert(!Universe::heap()->is_gc_active(), "can't extend the root set during
GC");

But how is this enforced by the JNI code calling NewGlobalRef?

Thanks,
Jungwoo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/hotspot-gc-dev/attachments/20140402/aee9a136/attachment.htm>


More information about the hotspot-gc-dev mailing list