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

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

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b21

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: