Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8198756 Lazy allocation of compiler threads
  3. JDK-8201189

Release Note: Lazy Allocation of Compiler Threads

    XMLWordPrintable

Details

    • generic
    • generic
    • Verified

    Description

      A new command line flag ` -XX:+UseDynamicNumberOfCompilerThreads` has been added to dynamically control compiler threads. In tiered compilation mode, which is on by default, the VM starts a large number of compiler threads on systems with many CPUs regardless of the available memory and the number of compilation requests. Because the threads consume memory even when they are idle (which is almost all of the time), this leads to an inefficient use of resources.

      To address this issue, the implementation has been changed to start only one compiler thread of each type during startup and to handle the start and shutdown of further threads dynamically. It is controlled by a new command line flag, which is on by default:

      `-XX:+UseDynamicNumberOfCompilerThreads`

      Attachments

        Activity

          People

            kvn Vladimir Kozlov
            kvn Vladimir Kozlov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: