[heap] Disable --stress-concurrent-allocation in ManualGCScope
ManualGCScope is used in tests that perform GC manually. Stressing concurrent allocation interferes with that and may trigger more GCs than the test expects. Bug: v8:10315 Change-Id: I6705f0b7cc555074b319a41d29810936b5a2a556 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2392242 Reviewed-by: Dominik Inführ <dinfuehr@chromium.org> Commit-Queue: Ulan Degenbaev <ulan@chromium.org> Cr-Commit-Position: refs/heads/master@{#69691}
This commit is contained in:
parent
4b26001c78
commit
d2d3256131
@ -644,6 +644,8 @@ class ManualGCScope {
|
||||
ManualGCScope()
|
||||
: flag_concurrent_marking_(i::FLAG_concurrent_marking),
|
||||
flag_concurrent_sweeping_(i::FLAG_concurrent_sweeping),
|
||||
flag_stress_concurrent_allocation_(
|
||||
i::FLAG_stress_concurrent_allocation),
|
||||
flag_stress_incremental_marking_(i::FLAG_stress_incremental_marking),
|
||||
flag_parallel_marking_(i::FLAG_parallel_marking),
|
||||
flag_detect_ineffective_gcs_near_heap_limit_(
|
||||
@ -651,6 +653,7 @@ class ManualGCScope {
|
||||
i::FLAG_concurrent_marking = false;
|
||||
i::FLAG_concurrent_sweeping = false;
|
||||
i::FLAG_stress_incremental_marking = false;
|
||||
i::FLAG_stress_concurrent_allocation = false;
|
||||
// Parallel marking has a dependency on concurrent marking.
|
||||
i::FLAG_parallel_marking = false;
|
||||
i::FLAG_detect_ineffective_gcs_near_heap_limit = false;
|
||||
@ -658,6 +661,7 @@ class ManualGCScope {
|
||||
~ManualGCScope() {
|
||||
i::FLAG_concurrent_marking = flag_concurrent_marking_;
|
||||
i::FLAG_concurrent_sweeping = flag_concurrent_sweeping_;
|
||||
i::FLAG_stress_concurrent_allocation = flag_stress_concurrent_allocation_;
|
||||
i::FLAG_stress_incremental_marking = flag_stress_incremental_marking_;
|
||||
i::FLAG_parallel_marking = flag_parallel_marking_;
|
||||
i::FLAG_detect_ineffective_gcs_near_heap_limit =
|
||||
@ -667,6 +671,7 @@ class ManualGCScope {
|
||||
private:
|
||||
bool flag_concurrent_marking_;
|
||||
bool flag_concurrent_sweeping_;
|
||||
bool flag_stress_concurrent_allocation_;
|
||||
bool flag_stress_incremental_marking_;
|
||||
bool flag_parallel_marking_;
|
||||
bool flag_detect_ineffective_gcs_near_heap_limit_;
|
||||
|
Loading…
Reference in New Issue
Block a user