openj9
openj9 copied to clipboard
Update test code for off-heap feature
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.
@llxia @TobiAjila please review the changes, Thanks
@LinHu2016 could you provide the Grinder link? Thanks
personal build: https://hyc-runtimes-jenkins.swg-devops.com/view/OpenJ9%20-%20Personal/job/Pipeline-Build-Test-Personal/24418/
jenkins test sanity.functional alinux64 jdk17
none of the failures are related