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

Issue 1813963002: Add memory pressure notification API (Closed)

Created:
4 years, 9 months ago by ulan
Modified:
4 years, 9 months ago
CC:
Hannes Payer (out of office), Paweł Hajdan Jr., v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Add memory pressure notification API Based on CL 1777883002. BUG=chromium:590975 LOG=NO Committed: https://crrev.com/bb9b74e75495ff0d00897760f5f13784e88930b0 Cr-Commit-Position: refs/heads/master@{#35053}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Add tests, address comments #

Total comments: 7

Patch Set 3 : Add foreground task, address comments #

Patch Set 4 : Make incremental steps in kModerate more aggressive #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : rebase #

Patch Set 8 : #

Patch Set 9 : GC interrupt on kModerate to start incremental marking #

Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -10 lines) Patch
M include/v8.h View 1 2 3 4 5 6 2 chunks +17 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M src/heap/heap.h View 1 2 3 4 5 6 7 chunks +21 lines, -1 line 0 comments Download
M src/heap/heap.cc View 1 2 3 4 5 6 7 8 6 chunks +65 lines, -5 lines 0 comments Download
M src/heap/incremental-marking.h View 2 chunks +3 lines, -1 line 0 comments Download
M src/heap/incremental-marking.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/heap/incremental-marking-job.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/heap/incremental-marking-job.cc View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M test/cctest/test-api.cc View 1 2 3 4 5 6 1 chunk +68 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (11 generated)
ulan
PTAL. I will add tests tomorrow.
4 years, 9 months ago (2016-03-17 19:21:39 UTC) #2
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1813963002/diff/1/include/v8.h File include/v8.h (right): https://codereview.chromium.org/1813963002/diff/1/include/v8.h#newcode5605 include/v8.h:5605: * the isolate is executing long running JavaScript code. ...
4 years, 9 months ago (2016-03-17 19:33:39 UTC) #4
hong.zheng
https://codereview.chromium.org/1813963002/diff/1/src/heap/heap.cc File src/heap/heap.cc (right): https://codereview.chromium.org/1813963002/diff/1/src/heap/heap.cc#newcode4428 src/heap/heap.cc:4428: void Heap::MemoryPressureNotification(MemoryPressureLevel level, On Android, LMK(low memory killer) and ...
4 years, 9 months ago (2016-03-18 02:27:16 UTC) #5
ulan
Thanks for comments. I added test. https://codereview.chromium.org/1813963002/diff/1/include/v8.h File include/v8.h (right): https://codereview.chromium.org/1813963002/diff/1/include/v8.h#newcode5605 include/v8.h:5605: * the isolate ...
4 years, 9 months ago (2016-03-18 12:49:41 UTC) #6
Hannes Payer (out of office)
https://codereview.chromium.org/1813963002/diff/1/src/heap/heap.cc File src/heap/heap.cc (right): https://codereview.chromium.org/1813963002/diff/1/src/heap/heap.cc#newcode4428 src/heap/heap.cc:4428: void Heap::MemoryPressureNotification(MemoryPressureLevel level, On 2016/03/18 12:49:40, ulan wrote: > ...
4 years, 9 months ago (2016-03-18 13:27:26 UTC) #8
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1813963002/diff/20001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/1813963002/diff/20001/src/api.cc#newcode7592 src/api.cc:7592: Locker::IsLocked(this)); as explained offline, Locker::IsLocked() always returns false in ...
4 years, 9 months ago (2016-03-18 15:29:12 UTC) #9
ulan
https://codereview.chromium.org/1813963002/diff/20001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/1813963002/diff/20001/src/api.cc#newcode7592 src/api.cc:7592: Locker::IsLocked(this)); On 2016/03/18 15:29:12, jochen - slow wrote: > ...
4 years, 9 months ago (2016-03-18 16:10:00 UTC) #10
Hannes Payer (out of office)
https://codereview.chromium.org/1813963002/diff/20001/src/heap/heap.cc File src/heap/heap.cc (right): https://codereview.chromium.org/1813963002/diff/20001/src/heap/heap.cc#newcode4435 src/heap/heap.cc:4435: CollectAllGarbage( On 2016/03/18 16:10:00, ulan wrote: > On 2016/03/18 ...
4 years, 9 months ago (2016-03-21 09:58:26 UTC) #11
jochen (gone - plz use gerrit)
On 2016/03/21 at 09:58:26, hpayer wrote: > https://codereview.chromium.org/1813963002/diff/20001/src/heap/heap.cc > File src/heap/heap.cc (right): > > https://codereview.chromium.org/1813963002/diff/20001/src/heap/heap.cc#newcode4435 ...
4 years, 9 months ago (2016-03-21 10:01:56 UTC) #12
ulan
Added more comments in v8.h Made kModerate more aggressive with incremental GC: it starts earlier, ...
4 years, 9 months ago (2016-03-21 15:28:28 UTC) #13
jochen (gone - plz use gerrit)
lgtm
4 years, 9 months ago (2016-03-21 15:30:42 UTC) #14
jochen (gone - plz use gerrit)
lgtm
4 years, 9 months ago (2016-03-21 15:30:46 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1813963002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1813963002/100001
4 years, 9 months ago (2016-03-21 15:35:30 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_win_compile_dbg on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win_compile_dbg/builds/15034)
4 years, 9 months ago (2016-03-21 15:39:41 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1813963002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1813963002/120001
4 years, 9 months ago (2016-03-22 09:42:57 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-22 10:06:21 UTC) #23
hong.zheng
lgtm. Thanks for your work
4 years, 9 months ago (2016-03-24 07:43:54 UTC) #24
ulan
On 2016/03/24 07:43:54, hong.zheng wrote: > lgtm. Thanks for your work Hannes, I'll go ahead ...
4 years, 9 months ago (2016-03-24 09:26:29 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1813963002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1813963002/160001
4 years, 9 months ago (2016-03-24 09:27:21 UTC) #28
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 9 months ago (2016-03-24 09:51:54 UTC) #30
commit-bot: I haz the power
4 years, 9 months ago (2016-03-24 09:53:19 UTC) #32
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/bb9b74e75495ff0d00897760f5f13784e88930b0
Cr-Commit-Position: refs/heads/master@{#35053}

Powered by Google App Engine
This is Rietveld 408576698