Skip to content

Commit ced6985

Browse files
committed
8361433: [Big Endian] assert(verify_guards()) failed: Expected valid memory guards after 8357601
1 parent f2d2eef commit ced6985

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/memory/guardedMemory.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class GuardedMemory : StackObj { // Wrapper on stack
119119
// We may not be able to dereference directly so use
120120
// SafeFetch. It doesn't matter if the value read happens
121121
// to be 0xFF as that is not what we expect anyway.
122-
u_char val = (u_char) SafeFetch32((int*)c, 0xFF);
122+
u_char val = (u_char) (SafeFetch32((int*)c, 0xFF) BIG_ENDIAN_ONLY(>> 24));
123123
if (val != badResourceValue) {
124124
return false;
125125
}

0 commit comments

Comments
 (0)