8341027: Crash in java/runtime/Unsafe/InternalErrorTest when running with -XX:-UseCompressedClassPointers

Reviewed-by: aboldtch, coleenp
This commit is contained in:
Stefan Karlsson 2024-09-27 08:28:59 +00:00
parent 2a2ecc994e
commit 9003e2c519

View File

@ -147,7 +147,8 @@ public class InternalErrorTest {
break;
case 1:
// testing Unsafe.copySwapMemory, trying to access next page after truncation.
unsafe.copySwapMemory(null, mapAddr + pageSize, new byte[4000], 16, 2000, 2);
int destOffset = Unsafe.ARRAY_BYTE_BASE_OFFSET;
unsafe.copySwapMemory(null, mapAddr + pageSize, new byte[4000], destOffset, 2000, 2);
break;
case 2:
// testing Unsafe.copySwapMemory, trying to access next page after truncation.