WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
58485
Convert WebProcess over to using disableTermination/enableTermination
https://bugs.webkit.org/show_bug.cgi?id=58485
Summary
Convert WebProcess over to using disableTermination/enableTermination
Anders Carlsson
Reported
2011-04-13 14:58:32 PDT
Convert WebProcess over to using disableTermination/enableTermination
Attachments
Patch
(24.51 KB, patch)
2011-04-13 15:03 PDT
,
Anders Carlsson
aroben
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Anders Carlsson
Comment 1
2011-04-13 15:03:32 PDT
Created
attachment 89470
[details]
Patch
Adam Roben (:aroben)
Comment 2
2011-04-13 15:13:41 PDT
Comment on
attachment 89470
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=89470&action=review
It's a little confusing that all the terminateIfPossible calls have turned into a temporary disabling of termination.
> Source/WebKit2/WebProcess/WebProcess.cpp:505 > void WebProcess::removeWebPage(uint64_t pageID) > { > m_pageMap.remove(pageID); > - terminateIfPossible(); > + > + enableTermination();
Do we need to verify that pageID was in m_pageMap?
> Source/WebKit2/WebProcess/WebProcess.cpp:733 > + WebProcess::LocalTerminationDisabler terminationDisabler(WebProcess::shared());
No need for either of the "WebProcess::"s.
> Source/WebKit2/WebProcess/WebProcess.cpp:755 > + WebProcess::LocalTerminationDisabler terminationDisabler(WebProcess::shared());
Or here.
> Source/WebKit2/WebProcess/WebCoreSupport/WebDatabaseManager.cpp:158 > + ChildProcess::LocalTerminationDisabler terminationDisabler(WebProcess::shared());
Why ChildProcess and not WebProcess?
Anders Carlsson
Comment 3
2011-04-13 15:19:32 PDT
(In reply to
comment #2
)
> (From update of
attachment 89470
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=89470&action=review
> > It's a little confusing that all the terminateIfPossible calls have turned into a temporary disabling of termination. > > > Source/WebKit2/WebProcess/WebProcess.cpp:505 > > void WebProcess::removeWebPage(uint64_t pageID) > > { > > m_pageMap.remove(pageID); > > - terminateIfPossible(); > > + > > + enableTermination(); > > Do we need to verify that pageID was in m_pageMap? >
Not really, but I added an assertion.
> > Source/WebKit2/WebProcess/WebProcess.cpp:733 > > + WebProcess::LocalTerminationDisabler terminationDisabler(WebProcess::shared()); > > No need for either of the "WebProcess::"s.
changed WebProcess::shared() to *this.
> > > Source/WebKit2/WebProcess/WebProcess.cpp:755 > > + WebProcess::LocalTerminationDisabler terminationDisabler(WebProcess::shared()); > > Or here. > > > Source/WebKit2/WebProcess/WebCoreSupport/WebDatabaseManager.cpp:158 > > + ChildProcess::LocalTerminationDisabler terminationDisabler(WebProcess::shared()); > > Why ChildProcess and not WebProcess?
Changed to WebProcess.
Anders Carlsson
Comment 4
2011-04-13 15:24:35 PDT
Committed
r83774
: <
http://trac.webkit.org/changeset/83774
>
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