openj9 icon indicating copy to clipboard operation
openj9 copied to clipboard

Update test code for off-heap feature

Open LinHu2016 opened this issue 1 year ago • 3 comments

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 avatar Oct 15 '24 15:10 LinHu2016

@llxia @TobiAjila please review the changes, Thanks

LinHu2016 avatar Oct 15 '24 15:10 LinHu2016

@LinHu2016 could you provide the Grinder link? Thanks

llxia avatar Oct 15 '24 16:10 llxia

personal build: https://hyc-runtimes-jenkins.swg-devops.com/view/OpenJ9%20-%20Personal/job/Pipeline-Build-Test-Personal/24418/

LinHu2016 avatar Oct 15 '24 16:10 LinHu2016

jenkins test sanity.functional alinux64 jdk17

tajila avatar Oct 30 '24 14:10 tajila

none of the failures are related

tajila avatar Oct 30 '24 18:10 tajila