Commit 7b1b62e5 authored by Michael Achenbach's avatar Michael Achenbach Committed by V8 LUCI CQ

[numfuzz] Extend numfuzz with more interrupt-budget fuzzing

This also fuzzes values of --budget-for-feedback-vector-allocation.
Boundaries for the intervals are the default values in the code.

No-Try: true
Bug: v8:12434
Change-Id: I0a9d7421408a51c717c2edfe0e67c459f0a2834c
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3303792Reviewed-by: 's avatarVictor Gomes <victorgomes@chromium.org>
Reviewed-by: 's avatarAlmothana Athamneh <almuthanna@chromium.org>
Commit-Queue: Almothana Athamneh <almuthanna@chromium.org>
Auto-Submit: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/main@{#78111}
parent 485ed827
...@@ -270,10 +270,16 @@ class CompactionFuzzer(Fuzzer): ...@@ -270,10 +270,16 @@ class CompactionFuzzer(Fuzzer):
class InterruptBudgetFuzzer(Fuzzer): class InterruptBudgetFuzzer(Fuzzer):
def create_flags_generator(self, rng, test, analysis_value): def create_flags_generator(self, rng, test, analysis_value):
while True: while True:
# Higher likelyhood for --no-lazy-feedback-allocation since some # Half with half without lazy feedback allocation. The first flag
# code paths for --interrupt-budget are tied to it. # overwrites potential flag negations from the extra flags list.
flags = rng.choice([], [], ['--no-lazy-feedback-allocation']) flag1 = rng.choice(
yield flags + ['--interrupt-budget=%d' % rng.randint(0, 135168)] '--lazy-feedback-allocation', '--no-lazy-feedback-allocation')
# For most code paths, only one of the flags below has a meaning
# based on the flag above.
flag2 = '--interrupt-budget=%d' % rng.randint(0, 135168)
flag3 = '--budget-for-feedback-vector-allocation=%d' % rng.randint(0, 940)
yield [flag1, flag2, flag3]
class StackSizeFuzzer(Fuzzer): class StackSizeFuzzer(Fuzzer):
......
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