< prev index next >

src/share/vm/oops/cpCache.cpp

Print this page

        

@@ -281,11 +281,11 @@
   // Competing writers must acquire exclusive access via a lock.
   // A losing writer waits on the lock until the winner writes f1 and leaves
   // the lock, so that when the losing writer returns, he can use the linked
   // cache entry.
 
-  objArrayHandle resolved_references = cpool->resolved_references();
+  objArrayHandle resolved_references = objArrayHandle(objArrayOop(oopDesc::bs()->write_barrier(cpool->resolved_references())));
   // Use the resolved_references() lock for this cpCache entry.
   // resolved_references are created for all classes with Invokedynamic, MethodHandle
   // or MethodType constant pool cache entries.
   assert(resolved_references() != NULL,
          "a resolved_references array should have been created for this class");
< prev index next >