Allow interrupt budget fuzzer to run tests

Bug: v8:13269
Change-Id: I0f35101bd4b8a91ed5aa596cb5d27a5dbb5f764e
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3882976
Reviewed-by: Michael Achenbach <machenbach@chromium.org>
Commit-Queue: Almothana Athamneh <almuthanna@chromium.org>
Cr-Commit-Position: refs/heads/main@{#83098}
This commit is contained in:
Al Muthanna Athamina 2022-09-08 16:09:49 +02:00 committed by V8 LUCI CQ
parent b120f3e60a
commit de391acf34
2 changed files with 11 additions and 10 deletions

View File

@ -324,7 +324,7 @@ class InterruptBudgetFuzzer(Fuzzer):
# Half with, half without lazy feedback allocation. The first flag
# overwrites potential flag negations from the extra flags list.
flag1 = rng.choice(
'--lazy-feedback-allocation', '--no-lazy-feedback-allocation')
['--lazy-feedback-allocation', '--no-lazy-feedback-allocation'])
flag2 = '--interrupt-budget=%d' % rng.randint(0, 135168)
flag3 = '--interrupt-budget-for-maglev=%d' % rng.randint(0, 40960)
flag4 = '--interrupt-budget-for-feedback-allocation=%d' % rng.randint(
@ -391,15 +391,15 @@ class DeoptFuzzer(Fuzzer):
FUZZERS = {
'compaction': (None, CompactionFuzzer),
'delay': (None, TaskDelayFuzzer),
'deopt': (DeoptAnalyzer, DeoptFuzzer),
'gc_interval': (GcIntervalAnalyzer, GcIntervalFuzzer),
'interrupt': InterruptBudgetFuzzer,
'marking': (MarkingAnalyzer, MarkingFuzzer),
'scavenge': (ScavengeAnalyzer, ScavengeFuzzer),
'stack': (None, StackSizeFuzzer),
'threads': (None, ThreadPoolSizeFuzzer),
'compaction': (None, CompactionFuzzer),
'delay': (None, TaskDelayFuzzer),
'deopt': (DeoptAnalyzer, DeoptFuzzer),
'gc_interval': (GcIntervalAnalyzer, GcIntervalFuzzer),
'interrupt': (None, InterruptBudgetFuzzer),
'marking': (MarkingAnalyzer, MarkingFuzzer),
'scavenge': (ScavengeAnalyzer, ScavengeFuzzer),
'stack': (None, StackSizeFuzzer),
'threads': (None, ThreadPoolSizeFuzzer),
}

View File

@ -62,6 +62,7 @@ class AugmentedOptions(optparse.Values):
fuzzers.append(fuzzer.create_fuzzer_config(name, prob, *args))
add('compaction', self.stress_compaction)
add('interrupt', self.stress_interrupt_budget)
add('marking', self.stress_marking)
add('scavenge', self.stress_scavenge)
add('gc_interval', self.stress_gc)