WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
226428
Stop using UncheckedLock in JSC::ConcurrentJSLock
https://bugs.webkit.org/show_bug.cgi?id=226428
Summary
Stop using UncheckedLock in JSC::ConcurrentJSLock
Chris Dumez
Reported
2021-05-29 17:37:37 PDT
Stop using UncheckedLock in JSC::ConcurrentJSLock as it is being phased out in favor of Lock, which supports Clang thread safety analysis.
Attachments
Patch
(7.83 KB, patch)
2021-05-29 17:39 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2021-05-29 17:39:01 PDT
Created
attachment 430118
[details]
Patch
EWS
Comment 2
2021-05-29 22:36:05 PDT
Committed
r278249
(
238286@main
): <
https://commits.webkit.org/238286@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 430118
[details]
.
Radar WebKit Bug Importer
Comment 3
2021-05-29 22:37:21 PDT
<
rdar://problem/78656527
>
Darin Adler
Comment 4
2021-05-29 23:08:55 PDT
Comment on
attachment 430118
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=430118&action=review
> Source/JavaScriptCore/runtime/ConcurrentJSLock.h:68 > + Optional<ConcurrentJSLockerImpl> m_locker;
I should have remembered to ask you to use std::optional<> here. Optional<> is a deprecated synonym.
Chris Dumez
Comment 5
2021-05-29 23:11:36 PDT
(In reply to Darin Adler from
comment #4
)
> Comment on
attachment 430118
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=430118&action=review
> > > Source/JavaScriptCore/runtime/ConcurrentJSLock.h:68 > > + Optional<ConcurrentJSLockerImpl> m_locker; > > I should have remembered to ask you to use std::optional<> here. Optional<> > is a deprecated synonym.
Old habits die hard, sorry :/
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