Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Issue 1777883002: Add memory pressure interrupt for memory pressure notification

Created:
4 years, 9 months ago by hong.zheng
Modified:
4 years, 9 months ago
CC:
v8-reviews_googlegroups.com, Weiliang
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Add memory pressure interrupt for memory pressure notification The CL is one part of "Do V8 GC ASAP if system memory is pressured"(https://codereview.chromium.org/1749073002/) BUG=chromium:590975 LOG=n

Patch Set 1 #

Total comments: 2

Patch Set 2 : enable memory pressure level #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -10 lines) Patch
M include/v8.h View 1 3 chunks +14 lines, -0 lines 3 comments Download
M src/api.cc View 1 2 chunks +12 lines, -0 lines 0 comments Download
M src/execution.h View 1 2 chunks +11 lines, -8 lines 0 comments Download
M src/execution.cc View 1 2 chunks +19 lines, -2 lines 0 comments Download
M src/isolate.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M src/isolate.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
hong.zheng
On 2016/03/09 12:23:59, hong.zheng wrote: > mailto:hong.zheng@intel.com changed reviewers: > + mailto:jochen@chromium.org, mailto:ulan@chromium.org PTAL
4 years, 9 months ago (2016-03-09 12:24:28 UTC) #3
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1777883002/diff/1/include/v8.h File include/v8.h (right): https://codereview.chromium.org/1777883002/diff/1/include/v8.h#newcode5881 include/v8.h:5881: void RequestMemoryPressureInterrupt(); I'd prefer an API ReportMemoryPressure(level) where level ...
4 years, 9 months ago (2016-03-09 15:18:59 UTC) #4
hong.zheng
On 2016/03/09 15:18:59, jochen wrote: > https://codereview.chromium.org/1777883002/diff/1/include/v8.h > File include/v8.h (right): > > https://codereview.chromium.org/1777883002/diff/1/include/v8.h#newcode5881 > ...
4 years, 9 months ago (2016-03-10 08:05:31 UTC) #6
jochen (gone - plz use gerrit)
On 2016/03/10 at 08:05:31, hong.zheng wrote: > On 2016/03/09 15:18:59, jochen wrote: > > https://codereview.chromium.org/1777883002/diff/1/include/v8.h ...
4 years, 9 months ago (2016-03-10 15:48:57 UTC) #7
hong.zheng
On 2016/03/10 15:48:57, jochen wrote: > On 2016/03/10 at 08:05:31, hong.zheng wrote: > > On ...
4 years, 9 months ago (2016-03-11 01:53:28 UTC) #8
ulan
On 2016/03/11 01:53:28, hong.zheng wrote: > On 2016/03/10 15:48:57, jochen wrote: > > On 2016/03/10 ...
4 years, 9 months ago (2016-03-11 11:42:48 UTC) #9
hong.zheng
PTAL. enable memory pressure level and add interface Isolate::HandleMemoryPressureInterrupt for handling MemoryPressureInterrupt in V8 idle
4 years, 9 months ago (2016-03-15 09:47:17 UTC) #10
hong.zheng
On 2016/03/11 11:42:48, ulan wrote: > On 2016/03/11 01:53:28, hong.zheng wrote: > > On 2016/03/10 ...
4 years, 9 months ago (2016-03-15 09:48:05 UTC) #11
hong.zheng
On 2016/03/15 09:48:05, hong.zheng wrote: > On 2016/03/11 11:42:48, ulan wrote: > > On 2016/03/11 ...
4 years, 9 months ago (2016-03-15 09:54:19 UTC) #12
jochen (gone - plz use gerrit)
4 years, 9 months ago (2016-03-15 20:57:19 UTC) #13
where not really moving closer to the kind of API I was envisioning. The
embedder should not have to decide whether v8 should use interrupts or not to do
something about the  memory pressure.

I think it's more efficient if we just implement the API ourselves.

https://codereview.chromium.org/1777883002/diff/20001/include/v8.h
File include/v8.h (right):

https://codereview.chromium.org/1777883002/diff/20001/include/v8.h#newcode5557
include/v8.h:5557: enum MemoryPressureLevel { kNone, kModerate, kCritical };
this should be an enum class

https://codereview.chromium.org/1777883002/diff/20001/include/v8.h#newcode5883
include/v8.h:5883: void RequestMemoryPressureInterrupt(MemoryPressureLevel
level);
this should be NotifyMemoryPressure(MemoryPressureLevel)

https://codereview.chromium.org/1777883002/diff/20001/include/v8.h#newcode6200
include/v8.h:6200: void HandleMemoryPressureInterrupt();
please remove this.

Powered by Google App Engine
This is Rietveld 408576698