hotspot/src/share/vm/oops/constantPool.cpp
changeset 23872 536c66fc43d3
parent 23515 f4872ef5df09
child 24334 36096f7271f4
child 24322 c2978d1578e3
--- a/hotspot/src/share/vm/oops/constantPool.cpp	Tue Apr 08 11:50:01 2014 +0200
+++ b/hotspot/src/share/vm/oops/constantPool.cpp	Tue Apr 08 13:58:38 2014 -0400
@@ -144,6 +144,10 @@
 // CDS support. Create a new resolved_references array.
 void ConstantPool::restore_unshareable_info(TRAPS) {
 
+  // Only create the new resolved references array and lock if it hasn't been
+  // attempted before
+  if (resolved_references() != NULL) return;
+
   // restore the C++ vtable from the shared archive
   restore_vtable();