YJIT: Fix overlapping &mut in Assembler::code_gc()
Making overlapping &muts 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.
YJIT: Fix overlapping &mut in Assembler::code_gc()
Making overlapping
&muts triggers Undefined Bahavior. This functionpreviously had them through
cbandocbaliasing withselfor livereferences in the caller.
To fix the overlap, take
ocbas a parameter and don't useget_inline_cb()in the body of the function.