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

Monitor deflation might be accidentally disabled by zero intervals

    XMLWordPrintable

Details

    • b21

    Backports

      Description

        Found this mistake while backporting JDK-8305994: if we put GADI=0 (defined as "disable guaranteed deflation"), then the MonitorDeflationThread would call `wait(0)`, that is, wait indefinitely for the notify. This breaks triggering the threshold heuristics!

        But what is even more concerning, the same thing would happen even prior to JDK-8305994, if we put GuaranteedSafepointInterval=0 too. Which means users who kept GSI=0 as the way to dodge excess safepoints, now effectively disable monitor deflation.

        Draft: https://github.com/openjdk/jdk/pull/13635

        Attachments

          Issue Links

            Activity

              People

                shade Aleksey Shipilev
                shade Aleksey Shipilev
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: