Skip to content

Commit a76d270

Browse files
authored
Fuzz non-v8-supported features more (#8448)
We have seen some continuation-related bugs recently, that more fuzzing could have found. Fuzz v8 a little less to add coverage there.
1 parent 4ffd9fe commit a76d270

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

scripts/fuzz_opt.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,11 @@ def randomize_feature_opts():
147147
FEATURE_OPTS.append(possible)
148148
if possible in IMPLIED_FEATURE_OPTS:
149149
FEATURE_OPTS.extend(IMPLIED_FEATURE_OPTS[possible])
150-
elif random.random() < 0.9:
151-
# 90% of the remaining (2/3 * 0.9) use them all (0.54 probability). This is useful to maximize
152-
# coverage, as enabling more features enables more optimizations and
153-
# code paths, and also allows all initial contents to run.
154-
150+
# Otherwise, use all the features. This is useful to maximize
151+
# coverage, as enabling more features enables more optimizations and
152+
# code paths, and also allows all initial contents to run. However,
153+
# half the time disable the specific ones that are a problem in V8.
154+
elif random.random() < 0.5:
155155
# Disable features not allowed in V8 to increase V8 fuzzing.
156156
FEATURE_OPTS.extend(f'--disable-{feature}' for feature in DISALLOWED_FEATURES_IN_V8)
157157
# Relaxed SIMD's nondeterminism disables much but not

0 commit comments

Comments
 (0)