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

Issue 1511933002: [cctest] Add tests for aborting compaction of pages (Closed)

Created:
5 years ago by Michael Lippautz
Modified:
5 years 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

[cctest] Add tests for aborting compaction of pages Tests for * aborting a full page. * partially aborting a page. * partially aborting a page with pointers between aborted pages. * partially aborting a page with store buffer entries. Also introduces force_oom() which prohibits a old space to expand BUG=chromium:524425 LOG=N

Patch Set 1 #

Patch Set 2 : More tests #

Total comments: 4

Patch Set 3 : Addressed comments; fixed typos #

Total comments: 2

Patch Set 4 : Addressed comment #

Total comments: 2

Patch Set 5 : Addressed final comment #

Patch Set 6 : Workaround FLAG_concurrent_sweeping not being respected after heap initialization #

Unified diffs Side-by-side diffs Delta from patch set Stats (+385 lines, -28 lines) Patch
M src/heap/heap.h View 1 2 3 4 3 chunks +6 lines, -0 lines 0 comments Download
M src/heap/heap.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/cctest.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/heap/heap-tester.h View 1 1 chunk +18 lines, -14 lines 0 comments Download
A test/cctest/heap/test-compaction.cc View 1 2 3 4 5 1 chunk +344 lines, -0 lines 0 comments Download
M test/cctest/heap/utils-inl.h View 3 chunks +14 lines, -13 lines 0 comments Download

Messages

Total messages: 36 (20 generated)
Michael Lippautz
PTAL. I am open to different ideas of simulating the OOM scenario. In general, the ...
5 years ago (2015-12-10 15:07:59 UTC) #10
Hannes Payer (out of office)
https://codereview.chromium.org/1511933002/diff/40001/src/heap/spaces.cc File src/heap/spaces.cc (right): https://codereview.chromium.org/1511933002/diff/40001/src/heap/spaces.cc#newcode1185 src/heap/spaces.cc:1185: if (!heap()->CanExpandOldGeneration(static_cast<int>(size))) return false; I think that ShouldForeOOM should ...
5 years ago (2015-12-10 15:18:15 UTC) #11
ulan
lgtm modulo Hannes' comments https://codereview.chromium.org/1511933002/diff/40001/test/cctest/heap/test-compaction.cc File test/cctest/heap/test-compaction.cc (right): https://codereview.chromium.org/1511933002/diff/40001/test/cctest/heap/test-compaction.cc#newcode122 test/cctest/heap/test-compaction.cc:122: } else CHECK(the object is ...
5 years ago (2015-12-10 17:29:23 UTC) #12
Michael Lippautz
Addressed comments and fixed typos in the descriptive comments in the tests. https://codereview.chromium.org/1511933002/diff/40001/src/heap/spaces.cc File src/heap/spaces.cc ...
5 years ago (2015-12-10 17:42:44 UTC) #14
Hannes Payer (out of office)
https://codereview.chromium.org/1511933002/diff/80001/src/heap/spaces.cc File src/heap/spaces.cc (right): https://codereview.chromium.org/1511933002/diff/80001/src/heap/spaces.cc#newcode1171 src/heap/spaces.cc:1171: if (heap()->force_oom()) return false; This check should be done ...
5 years ago (2015-12-10 18:11:54 UTC) #15
Michael Lippautz
https://codereview.chromium.org/1511933002/diff/80001/src/heap/spaces.cc File src/heap/spaces.cc (right): https://codereview.chromium.org/1511933002/diff/80001/src/heap/spaces.cc#newcode1171 src/heap/spaces.cc:1171: if (heap()->force_oom()) return false; On 2015/12/10 18:11:54, Hannes Payer ...
5 years ago (2015-12-10 18:20:54 UTC) #16
Hannes Payer (out of office)
LGTM, one nit https://codereview.chromium.org/1511933002/diff/100001/src/heap/heap.h File src/heap/heap.h (right): https://codereview.chromium.org/1511933002/diff/100001/src/heap/heap.h#newcode2118 src/heap/heap.h:2118: bool force_oom() { return force_oom_; } ...
5 years ago (2015-12-10 18:32:06 UTC) #17
Michael Lippautz
https://codereview.chromium.org/1511933002/diff/100001/src/heap/heap.h File src/heap/heap.h (right): https://codereview.chromium.org/1511933002/diff/100001/src/heap/heap.h#newcode2118 src/heap/heap.h:2118: bool force_oom() { return force_oom_; } On 2015/12/10 18:32:06, ...
5 years ago (2015-12-10 18:34:55 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1511933002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1511933002/120001
5 years ago (2015-12-10 18:35:08 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: v8_win_rel_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win_rel_ng/builds/402) v8_win_rel_ng_triggered on tryserver.v8 (JOB_FAILED, ...
5 years ago (2015-12-10 18:50:59 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1511933002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1511933002/140001
5 years ago (2015-12-11 08:45:45 UTC) #25
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-11 09:11:20 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1511933002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1511933002/140001
5 years ago (2015-12-11 09:12:21 UTC) #30
commit-bot: I haz the power
Committed patchset #6 (id:140001)
5 years ago (2015-12-11 09:14:06 UTC) #32
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/161a0e00519a63672d93c36c5d3854c8ccb0030f Cr-Commit-Position: refs/heads/master@{#32783}
5 years ago (2015-12-11 09:14:52 UTC) #34
Michael Lippautz
5 years ago (2015-12-11 09:49:40 UTC) #36
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:140001) has been created in
https://codereview.chromium.org/1514603008/ by mlippautz@chromium.org.

The reason for reverting is: Failing on Win 32bit nosnap:
 
https://chromegw.corp.google.com/i/client.v8/builders/V8%20Win32%20-%20nosnap....

Powered by Google App Engine
This is Rietveld 408576698