Skip to content

Commit 7deea69

Browse files
committed
Fix hashCode intrinsic miscompilation.
1 parent ec71f71 commit 7deea69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/share/opto/library_call.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5364,8 +5364,8 @@ bool LibraryCallKit::inline_native_hashcode(bool is_virtual, bool is_static) {
53645364

53655365
if (!UseObjectMonitorTable) {
53665366
// Test the header to see if it is safe to read w.r.t. locking.
5367-
// This also serves as guard against inline types
5368-
Node *lock_mask = _gvn.MakeConX(markWord::inline_type_mask_in_place);
5367+
// We guard against inline types at this point,
5368+
Node *lock_mask = _gvn.MakeConX(markWord::lock_mask_in_place);
53695369
Node *lmasked_header = _gvn.transform(new AndXNode(header, lock_mask));
53705370
if (LockingMode == LM_LIGHTWEIGHT) {
53715371
Node *monitor_val = _gvn.MakeConX(markWord::monitor_value);

0 commit comments

Comments
 (0)