Bug 170016 - Let the UI process do memory kills and replace crashes with diagnostic logging.
Summary: Let the UI process do memory kills and replace crashes with diagnostic logging.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andreas Kling
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-03-23 12:08 PDT by Andreas Kling
Modified: 2017-03-23 15:21 PDT (History)
4 users (show)

See Also:


Attachments
Patch (10.91 KB, patch)
2017-03-23 12:14 PDT, Andreas Kling
no flags Details | Formatted Diff | Diff
Patch (10.06 KB, patch)
2017-03-23 12:17 PDT, Andreas Kling
cdumez: review+
cdumez: commit-queue-
Details | Formatted Diff | Diff
Patch for landing (10.92 KB, patch)
2017-03-23 14:36 PDT, Andreas Kling
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.