question: private static int GetArrayLength ( JNIEnvironment env , int arrayJREF ) { if ( traceJNI ) VM . sysWrite ( "JNI called: GetArrayLength  \n" ) ; RuntimeEntrypoints . checkJNICountDownToGC ( ) ; try { Object theArray = env . getJNIRef ( arrayJREF ) ; RVMType arrayType = Magic . getObjectType ( theArray ) ; return arrayType . isArrayType ( ) ? Magic . getArrayLength ( theArray ) : - 1 ; } catch ( Throwable unexpected ) { if ( traceJNI ) unexpected . printStackTrace ( System . err ) ; env . recordException ( unexpected ) ; return - 1 ; } }
target:  GetArrayLength: return array length