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

Signed integer overflows in ABS

XMLWordPrintable

      JDK-8307138 did lot of work for eliminating the signed overflows. But it looks that more cases showed up recently, because I just tried for mainline:

      % bash ./configure --with-debug-level=fastdebug --with-jtreg=../openjdk-jtreg/build/images/jtreg/ --with-gtest=../googletest-1.14.0 --disable-warnings-as-errors --with-extra-cxxflags=-ftrapv
      % make test TEST=hotspot:tier1

      ==============================
      Test summary
      ==============================
         TEST TOTAL PASS FAIL ERROR
      >> jtreg:test/hotspot/jtreg:tier1 2528 2526 2 0 <<
      ==============================
      TEST FAILURE

      % grep ^TEST: tiers.log
      TEST: compiler/c2/MinValueStrideCountedLoop.java#id1
      TEST: compiler/c2/MinValueStrideCountedLoop.java#id0

      This is probably JDK-8314191.

            shade Aleksey Shipilev
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: