Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update java9above unsafe test for off-heap case
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]>
- Loading branch information