8329720: Gtest failure printing markword after JDK-8325303

Reviewed-by: mikael
This commit is contained in:
David Holmes 2024-04-05 02:15:48 +00:00
parent 34f7974a40
commit 0b01144ece

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -88,11 +88,11 @@ TEST_VM(markWord, printing) {
ObjectLocker ol(h_obj, THREAD);
assert_test_pattern(h_obj, "locked");
}
assert_test_pattern(h_obj, "is_neutral no_hash");
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_neutral hash=0x");
assert_test_pattern(h_obj, "is_unlocked hash=0x");
// Wait gets the lock inflated.
{