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

G1 crashes if active_processor_count changes during startup

    Details

    • Subcomponent:
      gc
    • Resolved In Build:
      b131

      Backports

        Description

        If os::active_processor_count changes during startup, G1 will crash because it sizes some data structures based on the first call, and then potentially accesses these data structures out of bounds.

        This bugfix is about fixing the G1 crash by introducing an initial_active_processor_count() call, but not reusing it for other purposes.

          Issue Links

            Activity

            Hide
            tschatzl Thomas Schatzl added a comment -
            Using the patch provided by JDK-8147970.
            Show
            tschatzl Thomas Schatzl added a comment - Using the patch provided by JDK-8147970.
            Hide
            tschatzl Thomas Schatzl added a comment -
            noreg-hard justification: it is hard to reproducably change the number of processors returned by the function exactly after initialization and before second use; further setting the number of threads depends on OS specific functions.
            Show
            tschatzl Thomas Schatzl added a comment - noreg-hard justification: it is hard to reproducably change the number of processors returned by the function exactly after initialization and before second use; further setting the number of threads depends on OS specific functions.
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/hs/hotspot/rev/8986e5b85e73
            User: tschatzl
            Date: 2016-07-26 10:17:13 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/hs/hotspot/rev/8986e5b85e73 User: tschatzl Date: 2016-07-26 10:17:13 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/8986e5b85e73
            User: lana
            Date: 2016-08-10 20:19:27 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/8986e5b85e73 User: lana Date: 2016-08-10 20:19:27 +0000

              People

              • Assignee:
                tschatzl Thomas Schatzl
                Reporter:
                tschatzl Thomas Schatzl
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: