Commit 70c4eda5 authored by Ulan Degenbaev's avatar Ulan Degenbaev Committed by Commit Bot

[heap] Fix more cctests that require ManualGCScope

Bug: chromium:694255
Change-Id: Ic21368f68e103ee1278b4e975255c6941f23a2d0
Reviewed-on: https://chromium-review.googlesource.com/629058Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
Commit-Queue: Ulan Degenbaev <ulan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#47552}
parent d8d47eff
...@@ -2184,7 +2184,7 @@ TEST(LeakNativeContextViaMapProto) { ...@@ -2184,7 +2184,7 @@ TEST(LeakNativeContextViaMapProto) {
TEST(InstanceOfStubWriteBarrier) { TEST(InstanceOfStubWriteBarrier) {
if (!FLAG_incremental_marking) return; if (!FLAG_incremental_marking) return;
FLAG_stress_incremental_marking = false; ManualGCScope manual_gc_scope;
FLAG_allow_natives_syntax = true; FLAG_allow_natives_syntax = true;
#ifdef VERIFY_HEAP #ifdef VERIFY_HEAP
FLAG_verify_heap = true; FLAG_verify_heap = true;
...@@ -2277,7 +2277,7 @@ HEAP_TEST(GCFlags) { ...@@ -2277,7 +2277,7 @@ HEAP_TEST(GCFlags) {
TEST(IdleNotificationFinishMarking) { TEST(IdleNotificationFinishMarking) {
if (!FLAG_incremental_marking) return; if (!FLAG_incremental_marking) return;
FLAG_stress_incremental_marking = false; ManualGCScope manual_gc_scope;
FLAG_allow_natives_syntax = true; FLAG_allow_natives_syntax = true;
CcTest::InitializeVM(); CcTest::InitializeVM();
const int initial_gc_count = CcTest::heap()->gc_count(); const int initial_gc_count = CcTest::heap()->gc_count();
...@@ -6005,6 +6005,7 @@ HEAP_TEST(Regress5831) { ...@@ -6005,6 +6005,7 @@ HEAP_TEST(Regress5831) {
HEAP_TEST(RegressMissingWriteBarrierInAllocate) { HEAP_TEST(RegressMissingWriteBarrierInAllocate) {
if (!FLAG_incremental_marking) return; if (!FLAG_incremental_marking) return;
ManualGCScope manual_gc_scope;
FLAG_black_allocation = true; FLAG_black_allocation = true;
CcTest::InitializeVM(); CcTest::InitializeVM();
v8::HandleScope scope(CcTest::isolate()); v8::HandleScope scope(CcTest::isolate());
......
...@@ -55,6 +55,7 @@ Page* FindLastPageInNewSpace(std::vector<Handle<FixedArray>>& handles) { ...@@ -55,6 +55,7 @@ Page* FindLastPageInNewSpace(std::vector<Handle<FixedArray>>& handles) {
UNINITIALIZED_TEST(PagePromotion_NewToOld) { UNINITIALIZED_TEST(PagePromotion_NewToOld) {
if (!i::FLAG_incremental_marking) return; if (!i::FLAG_incremental_marking) return;
if (!i::FLAG_page_promotion) return; if (!i::FLAG_page_promotion) return;
ManualGCScope manual_gc_scope;
v8::Isolate* isolate = NewIsolateForPagePromotion(); v8::Isolate* isolate = NewIsolateForPagePromotion();
i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
......
...@@ -1328,7 +1328,7 @@ TEST(CodeSerializerLargeCodeObject) { ...@@ -1328,7 +1328,7 @@ TEST(CodeSerializerLargeCodeObject) {
TEST(CodeSerializerLargeCodeObjectWithIncrementalMarking) { TEST(CodeSerializerLargeCodeObjectWithIncrementalMarking) {
if (FLAG_never_compact) return; if (FLAG_never_compact) return;
FLAG_stress_incremental_marking = false; ManualGCScope manual_gc_scope;
FLAG_serialize_toplevel = true; FLAG_serialize_toplevel = true;
FLAG_always_opt = false; FLAG_always_opt = false;
const char* filter_flag = "--turbo-filter=NOTHING"; const char* filter_flag = "--turbo-filter=NOTHING";
......
...@@ -1110,7 +1110,7 @@ TEST(DoScavenge) { ...@@ -1110,7 +1110,7 @@ TEST(DoScavenge) {
TEST(DoScavengeWithIncrementalWriteBarrier) { TEST(DoScavengeWithIncrementalWriteBarrier) {
if (FLAG_never_compact || !FLAG_incremental_marking) return; if (FLAG_never_compact || !FLAG_incremental_marking) return;
FLAG_stress_incremental_marking = false; ManualGCScope manual_gc_scope;
CcTest::InitializeVM(); CcTest::InitializeVM();
v8::HandleScope scope(CcTest::isolate()); v8::HandleScope scope(CcTest::isolate());
Isolate* isolate = CcTest::i_isolate(); Isolate* isolate = CcTest::i_isolate();
...@@ -1461,7 +1461,7 @@ static void TestIncrementalWriteBarrier(Handle<Map> map, Handle<Map> new_map, ...@@ -1461,7 +1461,7 @@ static void TestIncrementalWriteBarrier(Handle<Map> map, Handle<Map> new_map,
int double_descriptor, int double_descriptor,
bool check_tagged_value = true) { bool check_tagged_value = true) {
if (FLAG_never_compact || !FLAG_incremental_marking) return; if (FLAG_never_compact || !FLAG_incremental_marking) return;
FLAG_stress_incremental_marking = false; ManualGCScope manual_gc_scope;
FLAG_manual_evacuation_candidates_selection = true; FLAG_manual_evacuation_candidates_selection = true;
Isolate* isolate = CcTest::i_isolate(); Isolate* isolate = CcTest::i_isolate();
Factory* factory = isolate->factory(); Factory* factory = isolate->factory();
...@@ -1545,7 +1545,7 @@ enum OldToWriteBarrierKind { ...@@ -1545,7 +1545,7 @@ enum OldToWriteBarrierKind {
}; };
static void TestWriteBarrierObjectShiftFieldsRight( static void TestWriteBarrierObjectShiftFieldsRight(
OldToWriteBarrierKind write_barrier_kind) { OldToWriteBarrierKind write_barrier_kind) {
FLAG_stress_incremental_marking = false; ManualGCScope manual_gc_scope;
CcTest::InitializeVM(); CcTest::InitializeVM();
Isolate* isolate = CcTest::i_isolate(); Isolate* isolate = CcTest::i_isolate();
v8::HandleScope scope(CcTest::isolate()); v8::HandleScope scope(CcTest::isolate());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment