hotspot/src/share/vm/prims/jvm.cpp
changeset 40102 23ff468d69b4
parent 40010 e32d5e545789
child 40655 9f644073d3a0
equal deleted inserted replaced
40101:3b8101f0fd65 40102:23ff468d69b4
   678     if (method != NULL) {
   678     if (method != NULL) {
   679       methodHandle m(THREAD, method);
   679       methodHandle m(THREAD, method);
   680       // This can safepoint and redefine method, so need both new_obj and method
   680       // This can safepoint and redefine method, so need both new_obj and method
   681       // in a handle, for two different reasons.  new_obj can move, method can be
   681       // in a handle, for two different reasons.  new_obj can move, method can be
   682       // deleted if nothing is using it on the stack.
   682       // deleted if nothing is using it on the stack.
   683       m->method_holder()->add_member_name(new_obj(), false);
   683       m->method_holder()->add_member_name(new_obj());
   684     }
   684     }
   685   }
   685   }
   686 
   686 
   687   // Caution: this involves a java upcall, so the clone should be
   687   // Caution: this involves a java upcall, so the clone should be
   688   // "gc-robust" by this stage.
   688   // "gc-robust" by this stage.