WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
142649
Change the DFG crashLock to use std::atomic.
https://bugs.webkit.org/show_bug.cgi?id=142649
Summary
Change the DFG crashLock to use std::atomic.
Mark Lam
Reported
2015-03-12 18:02:53 PDT
Let's use C++11.
Attachments
the patch.
(1.41 KB, patch)
2015-03-12 18:15 PDT
,
Mark Lam
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Mark Lam
Comment 1
2015-03-12 18:15:47 PDT
Created
attachment 248560
[details]
the patch.
Filip Pizlo
Comment 2
2015-03-12 19:14:16 PDT
Comment on
attachment 248560
[details]
the patch. This is broken - the compare_and_exchange will set expected to 1 if it fails.
Filip Pizlo
Comment 3
2015-03-12 19:19:04 PDT
Comment on
attachment 248560
[details]
the patch. Never mind, I misread the code. I really don't like the API that has expected be a reference. This is just massively broken for most of our uses of CAS (and indeed for most sensible uses of CAS in general...). Can we have a wrapper for std::atomic that has a more sensible API, where expected is not a reference?
WebKit Commit Bot
Comment 4
2015-03-12 20:02:48 PDT
Comment on
attachment 248560
[details]
the patch. Clearing flags on attachment: 248560 Committed
r181469
: <
http://trac.webkit.org/changeset/181469
>
WebKit Commit Bot
Comment 5
2015-03-12 20:02:54 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug