comparison src/share/vm/prims/jvmtiRedefineClasses.cpp @ 20619:b12a2a9b05ca

8056240: Investigate increased GC remark time after class unloading changes in CRM Fuse Reviewed-by: mgerdin, coleenp, bdelsart
author stefank
date Thu, 02 Oct 2014 10:55:36 +0200
parents 50054b63f0aa
children 7848fc12602b
comparison
equal deleted inserted replaced
20618:7024b693c8f9 20619:b12a2a9b05ca
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);