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

ConcurrentMarkThread::slt may be invoked before ConcurrentMarkThread::makeSurrogateLockerThread causing intermittent crashes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 8u40, 9
    • hotspot
    • -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:+ScavengeALot -XX:SurvivorAlignmentInBytes=2k -Xmx10m

    • gc
    • b42

        GC threads initialized much earlier than ConcurrentMarkThread::makeSurrogateLockerThread call is done, so with +ScavengeALot GC may happened several times during VM initialization. In some rare cases G1's remark phase may be started before SLT is initialized and crash will happen.

        I'm able to reproduce such scenario with following VM options on linux-x64:
        -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:+ScavengeALot -XX:SurvivorAlignmentInBytes=2k -Xmx10m -version

              kbarrett Kim Barrett
              fzhinkin Filipp Zhinkin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: