question: private static void ReleasePrimitiveArrayCritical ( JNIEnvironment env , int arrayJREF , Address arrayCopyAddress , int mode ) { if ( traceJNI ) VM . sysWrite ( "JNI called: ReleasePrimitiveArrayCritical \n" ) ; RuntimeEntrypoints . checkJNICountDownToGC ( ) ; try { VM . enableGC ( true ) ; } catch ( Throwable unexpected ) { if ( traceJNI ) unexpected . printStackTrace ( System . err ) ; env . recordException ( unexpected ) ; } }
target:  ReleasePrimitiveArrayCritical: this function is intended to be paired with the GetPrimitiveArrayCritical function. Since the native code has direct access to the array, no copyback update is necessary;  GC is simply reenabled.