if (verboseJNI) VM.sysWrite("JNI called: IsSameObject  \n");
if (traceJNI) VM.sysWrite("JNI called: IsSameObject  \n");
  private static boolean IsSameObject(int envJREF, int obj1JREF, int obj2JREF) {    if (verboseJNI) VM.sysWrite("JNI called: IsSameObject  \n");    VM_JNIEnvironment env;    try {      env = VM_Thread.getCurrentThread().getJNIEnv();      Object obj1 = (Object) env.getJNIRef(obj1JREF);      Object obj2 = (Object) env.getJNIRef(obj2JREF);      return (VM_Magic.objectAsAddress(obj1)==VM_Magic.objectAsAddress(obj2));    } catch (Throwable unexpected) {      env = VM_Thread.getCurrentThread().getJNIEnv();      env.recordException(null);            // clear old exception and register new one      env.recordException(unexpected);      return false;    }  }