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

private static int GetStringUTFLength ( JNIEnvironment env , int objJREF ) { if ( traceJNI ) VM . sysWrite ( "JNI called: GetStringUTFLength  \n" ) ; RuntimeEntrypoints . checkJNICountDownToGC ( ) ; try { String str = ( String ) env . getJNIRef ( objJREF ) ; return UTF8Convert . utfLength ( str ) ; } catch ( Throwable unexpected ) { if ( traceJNI ) unexpected . printStackTrace ( System . err ) ; env . recordException ( unexpected ) ; return 0 ; } }
getstringutflength : return number of bytes to represent a string in utf8 format
