src/hotspot/share/gc/cms/parNewGeneration.cpp
changeset 52271 1587306fe23f
parent 51332 c25572739e7c
child 52480 4c5d48f3bc84
--- a/src/hotspot/share/gc/cms/parNewGeneration.cpp	Wed Oct 24 14:59:21 2018 +0200
+++ b/src/hotspot/share/gc/cms/parNewGeneration.cpp	Wed Oct 24 16:22:34 2018 +0200
@@ -1118,7 +1118,7 @@
 
     // Attempt to install a null forwarding pointer (atomically),
     // to claim the right to install the real forwarding pointer.
-    forward_ptr = old->forward_to_atomic(ClaimedForwardPtr);
+    forward_ptr = old->forward_to_atomic(ClaimedForwardPtr, m);
     if (forward_ptr != NULL) {
       // someone else beat us to it.
         return real_forwardee(old);
@@ -1144,7 +1144,7 @@
     // Is in to-space; do copying ourselves.
     Copy::aligned_disjoint_words((HeapWord*)old, (HeapWord*)new_obj, sz);
     assert(CMSHeap::heap()->is_in_reserved(new_obj), "illegal forwarding pointer value.");
-    forward_ptr = old->forward_to_atomic(new_obj);
+    forward_ptr = old->forward_to_atomic(new_obj, m);
     // Restore the mark word copied above.
     new_obj->set_mark_raw(m);
     // Increment age if obj still in new generation