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

Implement UseHeavyMonitors consistently

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 18
    • Fix Version/s: 18
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b27
    • CPU:
      x86_64
    • OS:
      generic

      Backports

        Description

        The flag UseHeavyMonitors seems to imply that it makes Hotspot always use inflated monitors, rather than stack locks. However, it is only implemented in the interpreter that way. When it calls into the runtime, it would still happily stack-lock. Even worse, C1 uses another flag UseFastLocking to achieve something similar (with the same caveat that the runtime would stack-lock anyway). C2 doesn't have any such mechanism at all.
        In Lilliput I would like to experiment with disabling stack-locking, and thus, having this flag work as expected would seem very useful.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                rkennke Roman Kennke
                Reporter:
                rkennke Roman Kennke
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: