Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-65725

Mutex stats counters can use relaxed mode atomics

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Backlog
    • Major - P3
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • Service Arch

    Description

      The various updates of "counts()" in platform/mutex.cpp use fetchAndAdd, which I believe uses the default sequential memory ordering. These can use fetchAndAddRelaxed.

      Additionally the state.isFinalized check can use acquire/release semantics rather than sequential, though I think our AtomicWord class doesn't support that

      Attachments

        Issue Links

          Activity

            People

              backlog-server-servicearch Backlog - Service Architecture
              matthew.russotto@mongodb.com Matthew Russotto
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: