summaryrefslogtreecommitdiff
path: root/misc/call_fuzzer.sh
blob: cf4ec76fe825a68ffbfb9216045856ac61a61eb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Stop at first error
set -e

# TODO
# TODO: boost --num-iters to 1M+ for actual test
# TODO
export NUM_ITERS=25000

# Enable code GC so we don't stop compiling when we hit the code size limit
ruby --yjit-call-threshold=1 --yjit-code-gc misc/call_fuzzer.rb --num-iters=$NUM_ITERS

# Do another pass with --verify-ctx
ruby --yjit-call-threshold=1 --yjit-code-gc --yjit-verify-ctx misc/call_fuzzer.rb --num-iters=$NUM_ITERS