RESOLVED FIXED 226396
Stop using UncheckedLock in WTF::MetaAllocator
https://bugs.webkit.org/show_bug.cgi?id=226396
Summary Stop using UncheckedLock in WTF::MetaAllocator
Chris Dumez
Reported 2021-05-28 14:36:46 PDT
Stop using UncheckedLock in WTF::MetaAllocator, as it is being phased out in favor on Lock, which supports Clang thread safety analysis.
Attachments
Patch (10.39 KB, patch)
2021-05-28 14:37 PDT, Chris Dumez
ews-feeder: commit-queue-
Patch (10.86 KB, patch)
2021-05-28 14:52 PDT, Chris Dumez
no flags
Patch (14.22 KB, patch)
2021-05-28 17:02 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2021-05-28 14:37:55 PDT
Chris Dumez
Comment 2 2021-05-28 14:52:29 PDT
Darin Adler
Comment 3 2021-05-28 16:28:37 PDT
Comment on attachment 430060 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=430060&action=review > Source/JavaScriptCore/tools/VMInspector.cpp:131 > + WTF::Locker executableAllocatorLocker { lock }; The usual "using WTF" trick doesn’t work here?
Chris Dumez
Comment 4 2021-05-28 16:30:11 PDT
(In reply to Darin Adler from comment #3) > Comment on attachment 430060 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=430060&action=review > > > Source/JavaScriptCore/tools/VMInspector.cpp:131 > > + WTF::Locker executableAllocatorLocker { lock }; > > The usual "using WTF" trick doesn’t work here? The issue is that VMInspector has a using `Locker = Locker<UncheckedLock>`. I will look into removing it.
Chris Dumez
Comment 5 2021-05-28 17:02:36 PDT
EWS
Comment 6 2021-05-28 18:06:02 PDT
Committed r278232 (238269@main): <https://commits.webkit.org/238269@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 430075 [details].
Radar WebKit Bug Importer
Comment 7 2021-05-28 18:07:24 PDT
Note You need to log in before you can comment on or make changes to this bug.