Skip to content

Commit

Permalink
YJIT: rb_str_concat_literals is not leaf (#10035)
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun committed Feb 21, 2024
1 parent 776dbbb commit ce4142b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yjit/src/codegen.rs
Expand Up @@ -3064,8 +3064,8 @@ fn gen_concatstrings(
) -> Option<CodegenStatus> {
let n = jit.get_arg(0).as_usize();

// Save the PC and SP because we are allocating
jit_prepare_call_with_gc(jit, asm);
// rb_str_concat_literals may raise Encoding::CompatibilityError
jit_prepare_non_leaf_call(jit, asm);

let values_ptr = asm.lea(asm.ctx.sp_opnd(-(SIZEOF_VALUE_I32 * n as i32)));

Expand Down

0 comments on commit ce4142b

Please sign in to comment.