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

-XX:AvgMonitorsPerThreadEstimate=1 does not work right

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 16
    • 17
    • hotspot
    • b05
    • generic
    • generic

    Description

      The AvgMonitorsPerThreadEstimate option does not work quite
      right when trying to use a value lower than the default of 1024.

      The _in_use_list_ceiling variable is statically initialized to
      AvgMonitorsPerThreadEstimate and that happens before
      cmd line options are processed. So when you try to use
      -XX:AvgMonitorsPerThreadEstimate=1 you end up with an
      _in_use_list_ceiling of 1024 + <#-of-JavaThreads>. I see
      an _in_use_list_ceiling of 1034 in some of the testing that
      I'm doing for JDK-8226416.

      Attachments

        Issue Links

          Activity

            People

              dcubed Daniel Daugherty
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: