Bug 226428

Summary: Stop using UncheckedLock in JSC::ConcurrentJSLock
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: JavaScriptCoreAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: darin, ews-watchlist, ggaren, keith_miller, mark.lam, msaboff, saam, sam, tzagallo, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 226432    
Attachments:
Description Flags
Patch none

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
Chris Dumez
Comment 1 2021-05-29 17:39:01 PDT
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
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.