< prev index next >

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

Print this page
@@ -25,11 +25,11 @@
  #include "gc/shared/fullGCForwarding.inline.hpp"
  #include "oops/oop.inline.hpp"
  #include "unittest.hpp"
  
  static markWord originalMark() { return markWord(markWord::lock_mask_in_place); }
- static markWord changedMark()  { return markWord(0x4711); }
+ static markWord changedMark()  { return markWord().copy_set_hash(0x4711); }
  
  #define ASSERT_MARK_WORD_EQ(a, b) ASSERT_EQ((a).value(), (b).value())
  
  TEST_VM(PreservedMarks, iterate_and_restore) {
    PreservedMarks pm;
< prev index next >