private static int GetStringLength(JNIEnvironment env,int objJREF){
  if (traceJNI)   VM.sysWrite("JNI called: GetStringLength  \n");
  RuntimeEntrypoints.checkJNICountDownToGC();
  try {
    String str=(String)env.getJNIRef(objJREF);
    return str.length();
  }
 catch (  Throwable unexpected) {
    if (traceJNI)     unexpected.printStackTrace(System.err);
    env.recordException(unexpected);
    return 0;
  }
}

private static int GetStringLength ( JNIEnvironment env , int objJREF ) { if ( traceJNI ) VM . sysWrite ( "JNI called: GetStringLength  \n" ) ; RuntimeEntrypoints . checkJNICountDownToGC ( ) ; try { String str = ( String ) env . getJNIRef ( objJREF ) ; return str . length ( ) ; } catch ( Throwable unexpected ) { if ( traceJNI ) unexpected . printStackTrace ( System . err ) ; env . recordException ( unexpected ) ; return 0 ; } }
getstringlength : return the length of a string
