Force full GC whenever CollectAllGarbage is meant to trigger a full GC.
authorhpayer <hpayer@chromium.org>
Wed, 15 Apr 2015 07:10:47 +0000 (00:10 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 15 Apr 2015 07:10:39 +0000 (07:10 +0000)
commit9c105f0940ba757364ac18fcdf649815ec5ab2d1
treebb8a174f099feecef815e1a9e69e3a765ff520a5
parent83bc009d4647ea3730253ac3b785a2b98fbc17ca
Force full GC whenever CollectAllGarbage is meant to trigger a full GC.

Add a finalize incremental marking mode for CollectAllGarbage to finalize incremental marking when incremental marking is in progress, but we want a full gc at a given CollectAllGarbage call site.

Default mode for CollectAllGarbage is finalize incremental marking and perform a full GC.

BUG=

Review URL: https://codereview.chromium.org/1082973003

Cr-Commit-Position: refs/heads/master@{#27831}
25 files changed:
src/heap/heap.cc
src/heap/heap.h
src/heap/mark-compact-inl.h
src/heap/mark-compact.cc
src/heap/mark-compact.h
test/cctest/test-accessors.cc
test/cctest/test-api-interceptors.cc
test/cctest/test-api.cc
test/cctest/test-constantpool.cc
test/cctest/test-cpu-profiler.cc
test/cctest/test-debug.cc
test/cctest/test-deoptimization.cc
test/cctest/test-feedback-vector.cc
test/cctest/test-heap-profiler.cc
test/cctest/test-heap.cc
test/cctest/test-mark-compact.cc
test/cctest/test-mementos.cc
test/cctest/test-object-observe.cc
test/cctest/test-serialize.cc
test/cctest/test-symbols.cc
test/cctest/test-threads.cc
test/cctest/test-unboxed-doubles.cc
test/cctest/test-weakmaps.cc
test/cctest/test-weaksets.cc
test/cctest/test-weaktypedarrays.cc