summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array/drop_while_spec.rb
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2023-03-28 17:21:40 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2023-03-29 14:53:49 -0400
commit93b6997103b34750b2d84df07e09586fe1de0649 (patch)
tree14520ad62418b506c2509fd351e5760bdff249a8 /spec/ruby/core/array/drop_while_spec.rb
parenta8c6ba23a6a95272edd6179737d4f98d7b2cdf6e (diff)
YJIT: Fix overlapping &mut in Assembler::code_gc()
Making overlapping `&mut`s triggers Undefined Bahavior. This function previously had them through `cb` and `ocb` aliasing with `self` or live references in the caller. To fix the overlap, take `ocb` as a parameter and don't use `get_inline_cb()` in the body of the function.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7611
Diffstat (limited to 'spec/ruby/core/array/drop_while_spec.rb')
0 files changed, 0 insertions, 0 deletions