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

Need fast loadUnsafe() function in AtomicWord

    XMLWordPrintableJSON

Details

    • ALL

    Description

      mfence adds a lot of overhead and isn't needed in some cases. Example use case:

      AtomicInt32 _referenceCount;
      bool isShared() const { return _referenceCount.loadUnsafe() > 1; }

      Attachments

        Activity

          People

            alerner Alberto Lerner
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: