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

Mutex stats counters can use relaxed mode atomics

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Service Arch

      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

            Assignee:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: