hotspot/src/share/vm/prims/jvmtiRedefineClasses.cpp
changeset 31038 2fd2fdc6a70a
parent 30289 10b7b61d759a
child 31041 7d59fa6a48f1
--- a/hotspot/src/share/vm/prims/jvmtiRedefineClasses.cpp	Fri May 15 19:23:11 2015 +0300
+++ b/hotspot/src/share/vm/prims/jvmtiRedefineClasses.cpp	Thu May 21 18:22:33 2015 +0300
@@ -3885,7 +3885,10 @@
 
   // Attach new constant pool to the original klass. The original
   // klass still refers to the old constant pool (for now).
+  // resolved_references array should be moved as well, since it is located
+  // in klass mirror.
   scratch_class->constants()->set_pool_holder(the_class());
+  the_class->set_resolved_references(scratch_class->resolved_references());
 
 #if 0
   // In theory, with constant pool merging in place we should be able