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

Back SpinLock with a stdx::mutex in debug builds on non-windows

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.3
    • None
    • Testing Infrastructure
    • None
    • Fully Compatible
    • Platforms 2018-08-27
    • 0

    Description

      We have some lovely deadlock detection code built into the hang analyzer on linux which does a great job with our internal lock types as well as with mutexes. For debug builds, backing SpinLock's with mutexes gives us that deadlock detection for free.

      This constrains them from being released on a different thread, but critical sections already have that property, so we can't have been relying on it

      Attachments

        Activity

          People

            mira.carey@mongodb.com Mira Carey
            mira.carey@mongodb.com Mira Carey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: