Skip to content

Update java8 openj9 unsafe test for new off-heap case - #20436

Merged
llxia merged 1 commit into
eclipse-openj9:masterfrom
LinHu2016:testupdate4offheap2
Nov 1, 2024
Merged

Update java8 openj9 unsafe test for new off-heap case#20436
llxia merged 1 commit into
eclipse-openj9:masterfrom
LinHu2016:testupdate4offheap2

Conversation

@LinHu2016

Copy link
Copy Markdown
Contributor

In TestUnsafeCopyMemory.testCopyLargeArrayIntoRawMemory(), arrayBaseOffset has been used to generate the arbitrary arrayOffsets for copy, the original test assume that arrayBaseOffset is positive number( array header size), but for off-heap enabled case arrayBaseOffset =0, which could cause negative offset for testing copy(trigger exceptions), update the test code to avoid negative offset for copying.

@LinHu2016

Copy link
Copy Markdown
Contributor Author

@llxia please review the changes, Thanks

@llxia

llxia commented Oct 30, 2024

Copy link
Copy Markdown
Contributor

In TestUnsafeCopyMemory.testCopyLargeArrayIntoRawMemory(),
arrayBaseOffset has been used to generate the arbitrary arrayOffsets for
copy, the original test assume that arrayBaseOffset is positive number(
array header size), but for off-heap enabled case arrayBaseOffset =0,
which could cause negative offset for testing copy(trigger exceptions),
update the test code to avoid negative offset for copying.

Signed-off-by: lhu <linhu@ca.ibm.com>
@LinHu2016
LinHu2016 force-pushed the testupdate4offheap2 branch from e9b4ecd to 26d395b Compare November 1, 2024 13:28

@llxia llxia left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@llxia
llxia merged commit 1fb0961 into eclipse-openj9:master Nov 1, 2024
@amicic amicic added the comp:gc label Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants