VM.sysWrite("JNI ERROR: NewWeakGlobalRef not implemented yet, exiting ...\n"); VM.sysExit(VM.exitStatusUnsupportedInternalOp); return -1;
try { Object obj1 = (Object) env.getJNIRef(objectJREF); return VM_JNIGlobalRefTable.newWeakRef(obj1); } catch (Throwable unexpected) { if (traceJNI) unexpected.printStackTrace(System.err); env.recordException(unexpected); return 0; }
  private static int NewWeakGlobalRef(VM_JNIEnvironment env) {    if (traceJNI) VM.sysWrite("JNI called: NewWeakGlobalRef \n");       VM.sysWrite("JNI ERROR: NewWeakGlobalRef not implemented yet, exiting ...\n");    VM.sysExit(VM.exitStatusUnsupportedInternalOp);    return -1;   }