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

Always lazily allocate threads in G1

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Won't Fix
    • P3
    • tbd
    • 9, 10
    • hotspot
    • gc

    Description

      Currently only when enabling -XX:+UseDynamicNumberOfGCThreads all sets of worker threads (gc workers, marking, refinement) are allocated and started lazily, i.e. when they are needed.

      Doing so improves time to start up the VM significantly, in the range of up to 10% depending on GC.

      Lazy allocation does not change the number of threads actually in use, just when they are allocated, so this mechanism is quite disjoint with actually changing the number of threads for the different GC phases. By always allocating the threads lazily we would get these startup benefits always.

      Attachments

        Issue Links

          Activity

            People

              sangheki Sangheon Kim
              tschatzl Thomas Schatzl
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: