When running with ZJIT enabled and --repeat 2, the following spec fails on the second iteration after JIT compilation:
https://github.com/Shopify/ruby/blob/7c75dbe51e/spec/ruby/language/method_spec.rb#L1420-L1428
Reproducer:
make -s test-spec RUN_OPTS= MSPECOPT=--debug 'SPECOPTS=-T --zjit-call-threshold=2 --repeat 2 -e "when the method takes a key: parameter"'
The test passes on the first iteration but fails on the second, indicating the bug is in ZJIT-compiled code.
cc @rwstauner