Skip to content

Update j9vmtest for off-heap feature - #20339

Merged
tajila merged 1 commit into
eclipse-openj9:masterfrom
LinHu2016:testupdate4offheap
Oct 30, 2024
Merged

Update j9vmtest for off-heap feature#20339
tajila merged 1 commit into
eclipse-openj9:masterfrom
LinHu2016:testupdate4offheap

Conversation

@LinHu2016

@LinHu2016 LinHu2016 commented Oct 15, 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.

fix:#20451

@LinHu2016

Copy link
Copy Markdown
Contributor Author

@llxia @TobiAjila please review the changes, Thanks

@llxia

llxia commented Oct 15, 2024

Copy link
Copy Markdown
Contributor

@LinHu2016 could you provide the Grinder link? Thanks

@LinHu2016

Copy link
Copy Markdown
Contributor Author

@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

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 changed the title Update test code for off-heap feature Update j9vmtest for off-heap feature Oct 29, 2024
@tajila

tajila commented Oct 30, 2024

Copy link
Copy Markdown
Contributor

jenkins test sanity.functional alinux64 jdk17

@tajila

tajila commented Oct 30, 2024

Copy link
Copy Markdown
Contributor

none of the failures are related

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