[Webkit-unassigned] [Bug 142661] New: Introduce WTF::Atomic to wrap std::atomic for a friendlier CAS
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Mar 13 00:42:10 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=142661
Bug ID: 142661
Summary: Introduce WTF::Atomic to wrap std::atomic for a
friendlier CAS
Classification: Unclassified
Product: WebKit
Version: 528+ (Nightly build)
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mark.lam at apple.com
The CAS functions provided by std::atomic takes a reference to the expected value and modifies it if the CAS fails. However, in a lot of our CAS usage, we don't want the expected value to change. The solution to this is to provide a WTF::Atomic struct that wraps std::atomic, and provide CAS methods that won't alter the expected value if the CAS fails.
Also change CodeBlock, ByteSpinLock, and the DFG's crashLock to use WTF::Atomic instead of std::atomic.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150313/4cdf8867/attachment-0002.html>
More information about the webkit-unassigned
mailing list