Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update j9vmtest for off-heap feature #20339

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

LinHu2016
Copy link
Contributor

@LinHu2016 LinHu2016 commented Oct 15, 2024

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.

fix:#20451

@LinHu2016
Copy link
Contributor Author

@llxia @TobiAjila please review the changes, Thanks

@llxia
Copy link
Contributor

llxia commented Oct 15, 2024

@LinHu2016 could you provide the Grinder link? Thanks

@LinHu2016
Copy link
Contributor Author

Copy link
Contributor

@llxia llxia left a comment

Choose a reason for hiding this comment

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

LGTM

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 <[email protected]>
@LinHu2016 LinHu2016 changed the title Update test code for off-heap feature Update j9vmtest for off-heap feature Oct 29, 2024
@tajila
Copy link
Contributor

tajila commented Oct 30, 2024

jenkins test sanity.functional alinux64 jdk17

@tajila
Copy link
Contributor

tajila commented Oct 30, 2024

none of the failures are related

@tajila tajila merged commit dba0347 into eclipse-openj9:master Oct 30, 2024
3 of 5 checks passed
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