Title: [251723] branches/safari-608-branch/Source/WebKit
- Revision
- 251723
- Author
- [email protected]
- Date
- 2019-10-29 12:51:13 -0700 (Tue, 29 Oct 2019)
Log Message
Cherry-pick r251370. rdar://problem/56579672
Add more release logging for "Unexpectedly resumed" assertion
https://bugs.webkit.org/show_bug.cgi?id=203196
Reviewed by Geoffrey Garen.
* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::processDidResume):
* WebProcess/cocoa/WebProcessCocoa.mm:
(WebKit::WebProcess::processTaskStateDidChange):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@251370 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: branches/safari-608-branch/Source/WebKit/ChangeLog (251722 => 251723)
--- branches/safari-608-branch/Source/WebKit/ChangeLog 2019-10-29 19:51:11 UTC (rev 251722)
+++ branches/safari-608-branch/Source/WebKit/ChangeLog 2019-10-29 19:51:13 UTC (rev 251723)
@@ -1,5 +1,34 @@
2019-10-24 Kocsen Chung <[email protected]>
+ Cherry-pick r251370. rdar://problem/56579672
+
+ Add more release logging for "Unexpectedly resumed" assertion
+ https://bugs.webkit.org/show_bug.cgi?id=203196
+
+ Reviewed by Geoffrey Garen.
+
+ * WebProcess/WebProcess.cpp:
+ (WebKit::WebProcess::processDidResume):
+ * WebProcess/cocoa/WebProcessCocoa.mm:
+ (WebKit::WebProcess::processTaskStateDidChange):
+
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@251370 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2019-10-21 Chris Dumez <[email protected]>
+
+ Add more release logging for "Unexpectedly resumed" assertion
+ https://bugs.webkit.org/show_bug.cgi?id=203196
+
+ Reviewed by Geoffrey Garen.
+
+ * WebProcess/WebProcess.cpp:
+ (WebKit::WebProcess::processDidResume):
+ * WebProcess/cocoa/WebProcessCocoa.mm:
+ (WebKit::WebProcess::processTaskStateDidChange):
+
+2019-10-24 Kocsen Chung <[email protected]>
+
Cherry-pick r251304. rdar://problem/56579672
[iOS] "Unexpectedly Resumed" process assertion may cause us to get terminated
Modified: branches/safari-608-branch/Source/WebKit/WebProcess/WebProcess.cpp (251722 => 251723)
--- branches/safari-608-branch/Source/WebKit/WebProcess/WebProcess.cpp 2019-10-29 19:51:11 UTC (rev 251722)
+++ branches/safari-608-branch/Source/WebKit/WebProcess/WebProcess.cpp 2019-10-29 19:51:13 UTC (rev 251723)
@@ -1636,7 +1636,10 @@
accessibilityProcessSuspendedNotification(false);
{
LockHolder holder(m_unexpectedlyResumedUIAssertionLock);
- m_unexpectedlyResumedUIAssertion = nullptr;
+ if (m_unexpectedlyResumedUIAssertion) {
+ RELEASE_LOG(ProcessSuspension, "%p - WebProcess::processDidResume() Releasing 'Unexpectedly resumed' assertion", this);
+ m_unexpectedlyResumedUIAssertion = nullptr;
+ }
}
#endif
Modified: branches/safari-608-branch/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm (251722 => 251723)
--- branches/safari-608-branch/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm 2019-10-29 19:51:11 UTC (rev 251722)
+++ branches/safari-608-branch/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm 2019-10-29 19:51:13 UTC (rev 251723)
@@ -317,6 +317,7 @@
// We were awakened from suspension unexpectedly. Notify the WebProcessProxy, but take a process assertion on our parent PID
// to ensure that it too is awakened.
+ RELEASE_LOG(ProcessSuspension, "%p - WebProcess::processTaskStateChanged() Taking 'Unexpectedly resumed' assertion", this);
m_unexpectedlyResumedUIAssertion = adoptNS([[BKSProcessAssertion alloc] initWithPID:parentProcessConnection()->remoteProcessID() flags:BKSProcessAssertionPreventTaskSuspend reason:BKSProcessAssertionReasonFinishTask name:@"Unexpectedly resumed" withHandler:nil]);
auto releaseAssertion = [this] {
@@ -324,6 +325,7 @@
if (!m_unexpectedlyResumedUIAssertion)
return;
+ RELEASE_LOG(ProcessSuspension, "%p - WebProcess::processTaskStateChanged() Releasing 'Unexpectedly resumed' assertion due to time out", this);
[m_unexpectedlyResumedUIAssertion invalidate];
m_unexpectedlyResumedUIAssertion = nullptr;
};
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes