133 } |
133 } |
134 } |
134 } |
135 |
135 |
136 // Mark methods seen on stack and everywhere else so old methods are not |
136 // Mark methods seen on stack and everywhere else so old methods are not |
137 // cleaned up if they're on the stack. |
137 // cleaned up if they're on the stack. |
138 MetadataOnStackMark md_on_stack; |
138 MetadataOnStackMark md_on_stack(true); |
139 HandleMark hm(thread); // make sure any handles created are deleted |
139 HandleMark hm(thread); // make sure any handles created are deleted |
140 // before the stack walk again. |
140 // before the stack walk again. |
141 |
141 |
142 for (int i = 0; i < _class_count; i++) { |
142 for (int i = 0; i < _class_count; i++) { |
143 redefine_single_class(_class_defs[i].klass, _scratch_classes[i], thread); |
143 redefine_single_class(_class_defs[i].klass, _scratch_classes[i], thread); |