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

Need fast loadUnsafe() function in AtomicWord

    • ALL

      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; }
      

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

              Created:
              Updated:
              Resolved: