RESOLVED FIXED 143456
Create the web inspector process pool lazily
https://bugs.webkit.org/show_bug.cgi?id=143456
Summary Create the web inspector process pool lazily
Anders Carlsson
Reported 2015-04-06 15:15:40 PDT
Create the web inspector process pool lazily
Attachments
Patch (4.17 KB, patch)
2015-04-06 15:16 PDT, Anders Carlsson
mark.lam: review+
Anders Carlsson
Comment 1 2015-04-06 15:16:58 PDT
Mark Lam
Comment 2 2015-04-06 16:17:45 PDT
Comment on attachment 250231 [details] Patch r=me
Mark Lam
Comment 3 2015-04-06 16:29:56 PDT
Comment on attachment 250231 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=250231&action=review > Source/WebKit2/UIProcess/WebInspectorProxy.cpp:310 > - static WebProcessPool* processPool = []{ > + if (!s_processPool) { > auto configuration = API::ProcessPoolConfiguration::createWithLegacyOptions(); > configuration->setProcessModel(ProcessModelMultipleSecondaryProcesses); > - return &WebProcessPool::create(configuration.get()).leakRef(); > - }(); > + s_processPool = &WebProcessPool::create(configuration.get()).leakRef(); > + }; One question: does this require initialize once semantics?
Anders Carlsson
Comment 4 2015-04-06 16:44:23 PDT
(In reply to comment #3) > > One question: does this require initialize once semantics? No, it doesn't require thread safe initialization.
Anders Carlsson
Comment 5 2015-04-06 17:06:21 PDT
Darin Adler
Comment 6 2015-04-06 18:18:10 PDT
Comment on attachment 250231 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=250231&action=review > Source/WebKit2/UIProcess/WebInspectorProxy.cpp:318 > + if (!s_processPool) > + return false; I don’t think this code is needed. A null pointer would never be equal to the address of a reference.
Note You need to log in before you can comment on or make changes to this bug.