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

Remove notproduct option IgnoreLockingAssertions

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 14
    • Fix Version/s: 14
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b19

      Description

      The IgnoreLockingAssertions notproduct option is documented as "disable locking assertions (for speed)". The code it is protecting against executing is debug-only in assert_locked_or_safepoint, assert_locked_or_safepoint_weak, and assert_lock_strong. None of the relevant code is all that expensive, and there are much worse costs incurred by debug builds than these, making the "for speed" effect in the noise.

      This option is temporarily forced true by vtableEntry::verify, potentially masking bugs.

      This option should be removed.

        Attachments

          Activity

            People

            Assignee:
            kbarrett Kim Barrett
            Reporter:
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: