The 'size' parameters was used instead of hardcoded constant to improve support for different sizes.
------------- Commit messages: - JDK-8350701 [JMH] test foreign.AllocFromSliceTest failed with Exception for size>1024 Changes: https://git.openjdk.org/jdk/pull/23785/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23785&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8350701 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/23785.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/23785/head:pull/23785 PR: https://git.openjdk.org/jdk/pull/23785