Bug 169990 - Let MemoryPressureHandler track whether the process is active or inactive.
Summary: Let MemoryPressureHandler track whether the process is active or inactive.
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: Performance
Depends on:
Blocks:
 
Reported: 2017-03-22 19:47 PDT by Andreas Kling
Modified: 2018-07-20 09:57 PDT (History)
8 users (show)

See Also:


Attachments
Patch (15.24 KB, patch)
2017-03-22 19:58 PDT, Andreas Kling
koivisto: review+
Details | Formatted Diff | Diff
Patch for landing (14.88 KB, patch)
2017-03-22 20:33 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-22 19:47:21 PDT
Plumb relevant state down to MemoryPressureHandler as it changes instead of having the awkward memory kill eligibility callback.
Comment 1 Andreas Kling 2017-03-22 19:58:57 PDT
Created attachment 305158 [details]
Patch
Comment 2 Andreas Kling 2017-03-22 20:33:02 PDT
Created attachment 305159 [details]
Patch for landing
Comment 3 WebKit Commit Bot 2017-03-22 21:14:06 PDT
Comment on attachment 305159 [details]
Patch for landing

Clearing flags on attachment: 305159

Committed r214294: <http://trac.webkit.org/changeset/214294>
Comment 4 WebKit Commit Bot 2017-03-22 21:14:12 PDT
All reviewed patches have been landed.  Closing bug.
Comment 5 Simon Fraser (smfr) 2018-07-20 09:57:08 PDT
Comment on attachment 305159 [details]
Patch for landing

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

> Source/WTF/wtf/MemoryPressureHandler.h:55
> +enum class WebsamProcessState {

This is the worst name ever. Is it a pastiche of webkit and jetsam?