if (verboseJNI) VM.sysWrite("JNI called: NewGlobalRef\n");
if (traceJNI) VM.sysWrite("JNI called: NewGlobalRef\n");
  private static int NewGlobalRef(int envJREF, int objectJREF) {    if (verboseJNI) VM.sysWrite("JNI called: NewGlobalRef\n");    try {      VM_JNIEnvironment env = VM_Thread.getCurrentThread().getJNIEnv();      Object obj1 = (Object) env.getJNIRef(objectJREF);      return VM_JNIGlobalRefTable.newGlobalRef( obj1 );    } catch (Throwable whatever) {      VM_JNIEnvironment env = VM_Thread.getCurrentThread().getJNIEnv();      env.recordException(whatever);      return 0;    }  }