Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-9504

DocumentsWriterDeleteQueue.forceApplyGlobalSlice has needless locking

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 9.0
    • core/index
    • None
    • New

    Description

      DocumentsWriterDeleteQueue.forceApplyGlobalSlice is only called from getBufferedUpdateTermsSize so we end up doing double the locking. It's not a huge problem because re-entrant locks are cheap, but we can probably unwrap the methods a little bit here.

      This may impact HotSpot inlining, I haven't tried measuring that yet. If that is a concern, please let me know.

      Attachments

        Issue Links

          Activity

            People

              mdrob Mike Drob
              mdrob Mike Drob
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m