- 
    Enhancement 
- 
    Resolution: Fixed
- 
     P4 P4
- 
    None
- 
    None
                    The test foreign.AllocFromSliceTest failed with IllegalArgumentException for parameter size > 1024:
java.lang.IllegalArgumentException: bound must be positive
at java.base/java.util.Random.nextInt(Random.java:551)
at org.openjdk.bench.java.lang.foreign.AllocFromSliceTest.setup(AllocFromSliceTest.java:61)
The '1024' hardcoded internally as array's size and parameters calculation for 'nextInt' call.
java.lang.IllegalArgumentException: bound must be positive
at java.base/java.util.Random.nextInt(Random.java:551)
at org.openjdk.bench.java.lang.foreign.AllocFromSliceTest.setup(AllocFromSliceTest.java:61)
The '1024' hardcoded internally as array's size and parameters calculation for 'nextInt' call.
- links to
- 
                     Commit(master)
        openjdk/jdk/f1398ecb Commit(master)
        openjdk/jdk/f1398ecb
- 
                     Review(master)
        openjdk/jdk/23785 Review(master)
        openjdk/jdk/23785