[SERVER-6973] Need fast loadUnsafe() function in AtomicWord Created: 07/Sep/12  Updated: 06/Nov/17  Resolved: 24/Jan/13

Status: Closed
Project: Core Server
Component/s: Concurrency, Performance
Affects Version/s: None
Fix Version/s: 2.3.2

Type: Bug Priority: Major - P3
Reporter: Mathias Stearn Assignee: Alberto Lerner
Resolution: Done Votes: 0
Labels: todo_in_code
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-7610 Consider unfenced load for CurOp::kil... Closed
Operating System: ALL
Participants:

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


Generated at Thu Feb 08 03:13:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.