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

Remove notproduct option IgnoreLockingAssertions

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 14
    • 14
    • hotspot
    • None
    • b19

      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.

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

              Created:
              Updated:
              Resolved: