Bug 170016

Summary: Let the UI process do memory kills and replace crashes with diagnostic logging.
Product: WebKit Reporter: Andreas Kling <kling>
Component: Web Template FrameworkAssignee: Andreas Kling <kling>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, cdumez, commit-queue, kling
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
cdumez: review+, cdumez: commit-queue-
Patch for landing none

Description Andreas Kling 2017-03-23 12:08:41 PDT
<rdar://problem/31091292>
Comment 1 Andreas Kling 2017-03-23 12:14:06 PDT
Created attachment 305211 [details]
Patch
Comment 2 Build Bot 2017-03-23 12:16:40 PDT
Attachment 305211 [details] did not pass style-queue:


ERROR: Source/WebCore/page/PerformanceMonitor.cpp:51:  Should have a space between // and comment  [whitespace/comments] [4]
Total errors found: 1 in 9 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Andreas Kling 2017-03-23 12:17:19 PDT
Created attachment 305212 [details]
Patch
Comment 4 Chris Dumez 2017-03-23 12:29:26 PDT
Comment on attachment 305212 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=305212&action=review

r=me with comments.

> Source/WebKit2/ChangeLog:13
> +        Also add drive-by diagnostic logging for background CPU limit kills.

thank you

> Source/WebKit2/UIProcess/WebProcessProxy.cpp:1131
> +void WebProcessProxy::simulateProcessCrash(const String& reason)

I think this should take in an enum rather than a logging key. Logging is internal logic and I don't like that call sites have to pass in a logging key.

> Source/WebKit2/UIProcess/WebProcessProxy.h:169
> +    void simulateProcessCrash(const String& reason);

Could be private.
Comment 5 Andreas Kling 2017-03-23 14:36:12 PDT
Created attachment 305227 [details]
Patch for landing
Comment 6 WebKit Commit Bot 2017-03-23 14:38:32 PDT
Comment on attachment 305227 [details]
Patch for landing

Rejecting attachment 305227 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-02', 'validate-changelog', '--check-oops', '--non-interactive', 305227, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

ChangeLog entry in Source/WebCore/ChangeLog contains OOPS!.

Full output: http://webkit-queues.webkit.org/results/3397585
Comment 7 WebKit Commit Bot 2017-03-23 15:21:35 PDT
Comment on attachment 305227 [details]
Patch for landing

Clearing flags on attachment: 305227

Committed r214320: <http://trac.webkit.org/changeset/214320>
Comment 8 WebKit Commit Bot 2017-03-23 15:21:40 PDT
All reviewed patches have been landed.  Closing bug.