ManualGCScope: Disable ineffective GC detection
The manual scope is usually used to test corner cases of GC behavior so
disable the ineffective GC detecton there.
Bug: v8:7859
Change-Id: I92a1e43db739846ff0db20a60cc2ace79496e5fe
Reviewed-on: https://chromium-review.googlesource.com/1135140
Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#54418}
diff --git a/test/cctest/cctest.h b/test/cctest/cctest.h
index c4392b4..f1deea1 100644
--- a/test/cctest/cctest.h
+++ b/test/cctest/cctest.h
@@ -640,18 +640,23 @@
: flag_concurrent_marking_(i::FLAG_concurrent_marking),
flag_concurrent_sweeping_(i::FLAG_concurrent_sweeping),
flag_stress_incremental_marking_(i::FLAG_stress_incremental_marking),
- flag_parallel_marking_(i::FLAG_parallel_marking) {
+ flag_parallel_marking_(i::FLAG_parallel_marking),
+ flag_detect_ineffective_gcs_near_heap_limit_(
+ i::FLAG_detect_ineffective_gcs_near_heap_limit) {
i::FLAG_concurrent_marking = false;
i::FLAG_concurrent_sweeping = false;
i::FLAG_stress_incremental_marking = false;
// Parallel marking has a dependency on concurrent marking.
i::FLAG_parallel_marking = false;
+ i::FLAG_detect_ineffective_gcs_near_heap_limit = false;
}
~ManualGCScope() {
i::FLAG_concurrent_marking = flag_concurrent_marking_;
i::FLAG_concurrent_sweeping = flag_concurrent_sweeping_;
i::FLAG_stress_incremental_marking = flag_stress_incremental_marking_;
i::FLAG_parallel_marking = flag_parallel_marking_;
+ i::FLAG_detect_ineffective_gcs_near_heap_limit =
+ flag_detect_ineffective_gcs_near_heap_limit_;
}
private:
@@ -659,6 +664,7 @@
bool flag_concurrent_sweeping_;
bool flag_stress_incremental_marking_;
bool flag_parallel_marking_;
+ bool flag_detect_ineffective_gcs_near_heap_limit_;
};
// This is an abstract base class that can be overridden to implement a test
diff --git a/test/cctest/cctest.status b/test/cctest/cctest.status
index 06b3e71..a7fcb4f 100644
--- a/test/cctest/cctest.status
+++ b/test/cctest/cctest.status
@@ -125,9 +125,6 @@
'test-serialize/SnapshotCreatorNoExternalReferencesCustomFail1': [FAIL],
'test-serialize/SnapshotCreatorNoExternalReferencesCustomFail2': [FAIL],
- # https://crbug.com/v8/7859
- 'test-heap/Regress538257': [SKIP],
-
############################################################################
# Slow tests.
'test-debug/CallFunctionInDebugger': [PASS, ['mode == debug', SLOW]],