[Webkit-unassigned] [Bug 169300] New: WTF should have LL/SC and Atomic::transaction should get it for free
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Mar 7 12:34:24 PST 2017
https://bugs.webkit.org/show_bug.cgi?id=169300
Bug ID: 169300
Summary: WTF should have LL/SC and Atomic::transaction should
get it for free
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: All
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: Web Template Framework
Assignee: webkit-unassigned at lists.webkit.org
Reporter: fpizlo at apple.com
Patch forthcoming.
So far I've been able to make it so that this code:
lock.transaction(
[&] (LockType& value) -> bool {
value &= ~mask;
if (result.mayHaveMoreThreads)
value |= hasParkedBit;
return true;
});
Emits this code:
0000000000000338 ldaxrb w9, [x8]
000000000000033c and w9, w9, #0xfffffffc
0000000000000340 orr w9, w9, #0x2
0000000000000344 stlxrb w10, w9, [x8]
0000000000000348 tbnz w10, #0x0, 0x338
That's some nice LL/SC code!
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170307/8c48484b/attachment.html>
More information about the webkit-unassigned
mailing list