`JNICritical_lock` is used in `jni_lock` and `jni_unlock` of `GCLocker` to coordinate accesses around `_needs_gc`. Other operations unrelated to `_needs_gc` can be moved outside the critial section.
- links to
-
Review openjdk/jdk/8218