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

Issue 9378007: Ensure that we do a non-incremental GC before relying on weak handle callbacks. (Closed)

Created:
8 years, 10 months ago by Sven Panne
Modified:
8 years, 10 months ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Visibility:
Public.

Description

Ensure that we do a non-incremental GC before relying on weak handle callbacks. Previously, some tests failed when being run with a low GC interval. This was caused by a switch of the GC to incremental marking mode, which in turn did not fire any callbacks for weak global handles. Now we make sure that we run in non-incremental mode, although via a slightly misleading GC flag. We should probably review the uses of PerformScavenge() and gc() in our tests to see if they actually mean "make sure our callbacks fired". Committed: https://code.google.com/p/v8/source/detail?r=10681

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -78 lines) Patch
M test/cctest/test-deoptimization.cc View 31 chunks +54 lines, -78 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
Sven Panne
8 years, 10 months ago (2012-02-10 15:16:02 UTC) #1
Michael Starzinger
LGTM (with a nit). https://chromiumcodereview.appspot.com/9378007/diff/1/test/cctest/test-deoptimization.cc File test/cctest/test-deoptimization.cc (right): https://chromiumcodereview.appspot.com/9378007/diff/1/test/cctest/test-deoptimization.cc#newcode100 test/cctest/test-deoptimization.cc:100: // Do a non-incremental GC, ...
8 years, 10 months ago (2012-02-13 09:50:52 UTC) #2
Sven Panne
8 years, 10 months ago (2012-02-13 10:09:56 UTC) #3
http://codereview.chromium.org/9378007/diff/1/test/cctest/test-deoptimization.cc
File test/cctest/test-deoptimization.cc (right):

http://codereview.chromium.org/9378007/diff/1/test/cctest/test-deoptimization...
test/cctest/test-deoptimization.cc:100: // Do a non-incremental GC, making sure
that all weak global handle callbacks
On 2012/02/13 09:50:52, Michael Starzinger wrote:
> More precise: "Abort any ongoing incremental marking to make sure ..."

Done.

Powered by Google App Engine
This is Rietveld 408576698