summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2024-03-15 17:00:24 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2024-03-15 19:15:58 -0400
commitdef7023ee4a3fc6eeba9d3a34c31a5bcff315fac (patch)
treea4bae800eef87eaed2d060723d9bb45f13ac72d0 /test/ruby
parent185112f4ff901ba05ee3e7fe64caaff0fffb317e (diff)
Initialize VM stack if VM_CHECK_MODE
Lately there has been a few flaky YJIT CI failures where a new Ruby thread is finding the canary on the VM stack. For example: https://github.com/ruby/ruby/actions/runs/8287357784/job/22679508482#step:14:109 After checking a local rr recording, it's clear that the canary was written there when YJIT was using a temporary malloc region, and then later handed to the new Ruby thread. Previously, the VM stack was uninitialized, so it can have stale values in it, like the canary. Though unlikely, this can happen without YJIT too. Initialize the stack if we're spawning canaries.
Diffstat (limited to 'test/ruby')
0 files changed, 0 insertions, 0 deletions