Skip to content

Commit

Permalink
8341027: Crash in java/runtime/Unsafe/InternalErrorTest when running …
Browse files Browse the repository at this point in the history
…with -XX:-UseCompressedClassPointers

Reviewed-by: aboldtch, coleenp
  • Loading branch information
stefank committed Sep 27, 2024
1 parent 2a2ecc9 commit 9003e2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/hotspot/jtreg/runtime/Unsafe/InternalErrorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ public static void test(MappedByteBuffer buffer, Unsafe unsafe, long mapAddr, lo
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.
Expand Down

0 comments on commit 9003e2c

Please sign in to comment.