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

[TESTBUG] Bugs in runtime/NMT/MallocStressTest.java

XMLWordPrintable

    • b21

        This test assumes Math.abs(random.nextInt()) >= 0 in a few places, but it is *not* always true, as Math.abs(Integer.MIN_VALUE) == Integer.MIN_VALUE, which is a negative value.

        I am surprised I could not find any reports on this.

              zgu Zhengyu Gu
              zgu Zhengyu Gu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: