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

-XX:AvgMonitorsPerThreadEstimate=1 does not work right

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • 16
    • hotspot
    • b05
    • generic
    • generic

      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.

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

              Created:
              Updated:
              Resolved: