src/hotspot/share/gc/g1/g1ParScanThreadState.cpp
changeset 49722 a47d1e21b3f1
parent 49713 456e51e56ea2
child 49911 358be4680d12
--- a/src/hotspot/share/gc/g1/g1ParScanThreadState.cpp	Mon Apr 09 08:19:26 2018 -0400
+++ b/src/hotspot/share/gc/g1/g1ParScanThreadState.cpp	Thu Apr 05 10:54:53 2018 +0200
@@ -282,15 +282,15 @@
         // In this case, we have to install the mark word first,
         // otherwise obj looks to be forwarded (the old mark word,
         // which contains the forward pointer, was copied)
-        obj->set_mark(old_mark);
+        obj->set_mark_raw(old_mark);
         markOop new_mark = old_mark->displaced_mark_helper()->set_age(age);
         old_mark->set_displaced_mark_helper(new_mark);
       } else {
-        obj->set_mark(old_mark->set_age(age));
+        obj->set_mark_raw(old_mark->set_age(age));
       }
       _age_table.add(age, word_sz);
     } else {
-      obj->set_mark(old_mark);
+      obj->set_mark_raw(old_mark);
     }
 
     if (G1StringDedup::is_enabled()) {