RESOLVED FIXED223227
RunLoop::isMain() should not need to do any heap allocations
https://bugs.webkit.org/show_bug.cgi?id=223227
Summary RunLoop::isMain() should not need to do any heap allocations
Chris Dumez
Reported 2021-03-15 17:20:54 PDT
RunLoop::isMain() should not need to do any heap allocations.
Attachments
Patch (2.95 KB, patch)
2021-03-15 17:23 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2021-03-15 17:23:08 PDT
EWS
Comment 2 2021-03-15 18:57:06 PDT
Committed r274458: <https://commits.webkit.org/r274458> All reviewed patches have been landed. Closing bug and clearing flags on attachment 423268 [details].
Radar WebKit Bug Importer
Comment 3 2021-03-15 18:58:18 PDT
Alexey Proskuryakov
Comment 4 2021-03-16 08:37:26 PDT
Comment on attachment 423268 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=423268&action=review > Source/WTF/wtf/RunLoop.cpp:65 > +auto RunLoop::runLoopHolder() -> ThreadSpecific<Holder>& Is this style better?
Chris Dumez
Comment 5 2021-03-16 08:42:24 PDT
(In reply to Alexey Proskuryakov from comment #4) > Comment on attachment 423268 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=423268&action=review > > > Source/WTF/wtf/RunLoop.cpp:65 > > +auto RunLoop::runLoopHolder() -> ThreadSpecific<Holder>& > > Is this style better? I use it whenever it makes the type shorter. I would have needed to use 'ThreadSpecific<RunLoop::Holder>&' otherwise. I don't think we have a style rule either way but I have seen other people (including Darin) use it in such cases.
Darin Adler
Comment 6 2021-03-16 14:33:40 PDT
(In reply to Chris Dumez from comment #5) > I use it whenever it makes the type shorter. Yes, I do it whenever it makes the type significantly shorter.
Note You need to log in before you can comment on or make changes to this bug.