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

MonitoringSupport_lock should be unconditionally initialized after 8304074

    XMLWordPrintable

Details

    • 21
    • b08
    • generic
    • generic

    Backports

      Description

        MonitoringSupport_lock is initialized only when UseG1GC is true, but JDK-8304074 uses it to implement getTotalThreadAllocatedBytes, which is available for all garbage collectors. While the current code sets UseG1GC regardless of which collector is specified, see FLAG_SET_ERGO_IF_DEFAULT(UseG1GC, true) in gcConfig.cpp, if G1 isn't included in the Hotspot build or Hotspot is not running on a server class machine, the lock will not be initialized. The lock's initialization should be unconditional.

        Attachments

          Issue Links

            Activity

              People

                phh Paul Hohensee
                phh Paul Hohensee
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: