equal
deleted
inserted
replaced
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. |