diff options
| author | Alan Wu <XrXr@users.noreply.github.com> | 2023-03-28 17:21:40 -0400 |
|---|---|---|
| committer | Alan Wu <XrXr@users.noreply.github.com> | 2023-03-29 14:53:49 -0400 |
| commit | 93b6997103b34750b2d84df07e09586fe1de0649 (patch) | |
| tree | 14520ad62418b506c2509fd351e5760bdff249a8 /spec/ruby/core/array/shared/intersection.rb | |
| parent | a8c6ba23a6a95272edd6179737d4f98d7b2cdf6e (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/shared/intersection.rb')
0 files changed, 0 insertions, 0 deletions
