Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8350701

[JMH] test foreign.AllocFromSliceTest failed with Exception for size>1024

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • None
    • core-libs
    • 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.

            vaivanov Vladimir Ivanov
            vaivanov Vladimir Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: