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

Implement UseHeavyMonitors consistently

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 18
    • 18
    • hotspot
    • b27
    • x86_64
    • 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

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

                Dates

                  Created:
                  Updated:
                  Resolved: