private static boolean IsSameObject(JNIEnvironment env,int obj1JREF,int obj2JREF){
  if (traceJNI)   VM.sysWrite("JNI called: IsSameObject  \n");
  RuntimeEntrypoints.checkJNICountDownToGC();
  try {
    Object obj1=env.getJNIRef(obj1JREF);
    Object obj2=env.getJNIRef(obj2JREF);
    return obj1 == obj2;
  }
 catch (  Throwable unexpected) {
    if (traceJNI)     unexpected.printStackTrace(System.err);
    env.recordException(null);
    env.recordException(unexpected);
    return false;
  }
}

private static boolean IsSameObject ( JNIEnvironment env , int obj1JREF , int obj2JREF ) { if ( traceJNI ) VM . sysWrite ( "JNI called: IsSameObject  \n" ) ; RuntimeEntrypoints . checkJNICountDownToGC ( ) ; try { Object obj1 = env . getJNIRef ( obj1JREF ) ; Object obj2 = env . getJNIRef ( obj2JREF ) ; return obj1 == obj2 ; } catch ( Throwable unexpected ) { if ( traceJNI ) unexpected . printStackTrace ( System . err ) ; env . recordException ( null ) ; env . recordException ( unexpected ) ; return false ; } }
issameobject : determine if two references point to the same object
