< prev index next >

test/hotspot/gtest/oops/test_markWord.cpp

Print this page
*** 90,11 ***
    }
    assert_test_pattern(h_obj, "is_unlocked no_hash");
  
    // Hash the object then print it.
    intx hash = h_obj->identity_hash();
!   assert_test_pattern(h_obj, "is_unlocked hash=0x");
  
    // Wait gets the lock inflated.
    {
      ObjectLocker ol(h_obj, THREAD);
  
--- 90,15 ---
    }
    assert_test_pattern(h_obj, "is_unlocked no_hash");
  
    // Hash the object then print it.
    intx hash = h_obj->identity_hash();
!   if (UseCompactObjectHeaders) {
+     assert_test_pattern(h_obj, "is_unlocked hash is-hashed=true is-copied=false");
+   } else {
+     assert_test_pattern(h_obj, "is_unlocked hash=0x");
+   }
  
    // Wait gets the lock inflated.
    {
      ObjectLocker ol(h_obj, THREAD);
  
< prev index next >