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

C1 FastTLABRefill can allocate TLABs past the end of the heap

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • None
    • b120
    • sparc

      Running java with MinTLABSize=4294967296 and Parallel or Serial GC on Sparcv9 can hit SIGSEGV:
      java -XX:+UseParallelGC -XX:MinTLABSize=4294967296 TestGCOld 10 10 10 10 10
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0xffffffff63618c6c, pid=27816, tid=2
      #
      # JRE version: Java(TM) SE Runtime Environment (9.0) (fastdebug build 9-internal+0-2016-03-10-212736.kab.hs-rt)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 9-internal+0-2016-03-10-212736.kab.hs-rt, mixed mode, tiered, compressed oops, parallel gc, solaris-sparc)
      # Problematic frame:
      # v ~RuntimeStub::fast_new_instance Runtime1 stub
      #
      ...

      hs_err_pid27816.log is attached.

      Also, can be reproduced by running javac:
      javac -J-XX:+UseParallelGC -J-XX:MinTLABSize=4294967296 HelloWorld.java

      Sometimes, java hit assert instead of SIGSEGV:
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/opt/jprt/T/P1/212736.kab/s/hotspot/src/share/vm/gc/shared/collectedHeap.cpp:444), pid=27820, tid=2
      # assert(Universe::heap()->is_in_reserved(start + words - 1)) failed: not in heap
      #
      # JRE version: Java(TM) SE Runtime Environment (9.0) (fastdebug build 9-internal+0-2016-03-10-212736.kab.hs-rt)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 9-internal+0-2016-03-10-212736.kab.hs-rt, mixed mode, tiered, compressed oops, parallel gc, solaris-sparc)
      # Core dump will be written. Default location: /tmp/dd/bin/core or core.27820
      #
      ...

      hs_err_pid27820.log is attached.

      Problem observed only on Sparcv9.

            zmajo Zoltan Majo (Inactive)
            ddmitriev Dmitry Dmitriev
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: