< prev index next >

test/hotspot/gtest/gc/shared/test_preservedMarks.cpp

Print this page
@@ -41,11 +41,11 @@
      markWord m = markWord::encode_pointer_as_mark(obj);
      _oop.set_mark(m);
    }
  
    static markWord originalMark() { return markWord(markWord::lock_mask_in_place); }
-   static markWord changedMark()  { return markWord(0x4711); }
+   static markWord changedMark()  { return markWord((uintptr_t)0x4711 << markWord::hash_shift); }
  };
  
  #define ASSERT_MARK_WORD_EQ(a, b) ASSERT_EQ((a).value(), (b).value())
  
  TEST_VM(PreservedMarks, iterate_and_restore) {
< prev index next >