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

Issue 2218703004: Unify memory optimization modes and flags. (Closed)

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

Description

Unify memory optimization modes and flags. This patch folds --optimize-for-size flag and check for low-memory device into Heap::ShouldOptimizeForMemoryUsage() predicate. It has the following side effects: - the heap growing factor for low-memory devices is capped at 1.3 (old value was 2.0). - the memory reducer will be more aggressive for low-memory devices. BUG=chromium:634900 Committed: https://crrev.com/6cebf7d963c18e2ab09f2320c949baf0a4bed721 Cr-Commit-Position: refs/heads/master@{#38406}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Move flag to isolate and keep heap growing for medium memory devices as before #

Patch Set 3 : fix CE #

Patch Set 4 : skip memory pressure test when --optimize-for-size is on #

Patch Set 5 : x #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -21 lines) Patch
M src/api.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/heap/heap.h View 1 2 3 3 chunks +12 lines, -8 lines 0 comments Download
M src/heap/heap.cc View 1 2 3 5 chunks +12 lines, -11 lines 0 comments Download
M src/isolate.h View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download
M src/isolate.cc View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 25 (12 generated)
ulan
ptal
4 years, 4 months ago (2016-08-05 14:02:12 UTC) #2
Hannes Payer (out of office)
https://codereview.chromium.org/2218703004/diff/1/src/heap/heap.h File src/heap/heap.h (right): https://codereview.chromium.org/2218703004/diff/1/src/heap/heap.h#newcode899 src/heap/heap.h:899: return max_old_generation_size_ <= kMaxOldSpaceSizeMediumMemoryDevice; This is an indirect encoding ...
4 years, 4 months ago (2016-08-05 14:25:02 UTC) #3
Hannes Payer (out of office)
https://codereview.chromium.org/2218703004/diff/1/src/heap/heap.h File src/heap/heap.h (right): https://codereview.chromium.org/2218703004/diff/1/src/heap/heap.h#newcode892 src/heap/heap.h:892: void SetOptimizeForLatency() { optimize_for_memory_usage_ = false; } How about ...
4 years, 4 months ago (2016-08-05 14:30:07 UTC) #4
Hannes Payer (out of office)
lgtm
4 years, 4 months ago (2016-08-05 15:25:55 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2218703004/20001
4 years, 4 months ago (2016-08-05 15:29:44 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_avx2_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_avx2_rel_ng/builds/6344) v8_linux64_gyp_rel_ng on master.tryserver.v8 (JOB_FAILED, ...
4 years, 4 months ago (2016-08-05 15:33:14 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2218703004/40001
4 years, 4 months ago (2016-08-06 07:48:33 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_rel_ng/builds/10467) v8_linux64_rel_ng_triggered on master.tryserver.v8 (JOB_FAILED, ...
4 years, 4 months ago (2016-08-06 08:30:27 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2218703004/60001
4 years, 4 months ago (2016-08-06 12:58:58 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_asan_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel_ng/builds/6455) v8_linux64_avx2_rel_ng on master.tryserver.v8 (JOB_FAILED, ...
4 years, 4 months ago (2016-08-06 13:01:08 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2218703004/80001
4 years, 4 months ago (2016-08-07 15:13:00 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-07 15:33:46 UTC) #23
commit-bot: I haz the power
4 years, 4 months ago (2016-08-07 15:36:23 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/6cebf7d963c18e2ab09f2320c949baf0a4bed721
Cr-Commit-Position: refs/heads/master@{#38406}

Powered by Google App Engine
This is Rietveld 408576698