ruby-changes:68759
From: Maxime <ko1@a...>
Date: Thu, 21 Oct 2021 08:13:27 +0900 (JST)
Subject: [ruby-changes:68759] c1c5fd5a8d (master): Fix REG_SP writeback bug in gen_exit
https://git.ruby-lang.org/ruby.git/commit/?id=c1c5fd5a8d From c1c5fd5a8dbfce64067961a4051646ed62a50f89 Mon Sep 17 00:00:00 2001 From: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@s...> Date: Wed, 10 Feb 2021 15:38:20 -0500 Subject: Fix REG_SP writeback bug in gen_exit --- ujit_codegen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ujit_codegen.c b/ujit_codegen.c index 9ca8216a2c..51ae1bc4ce 100644 --- a/ujit_codegen.c +++ b/ujit_codegen.c @@ -55,7 +55,7 @@ static void https://github.com/ruby/ruby/blob/trunk/ujit_codegen.c#L55 ujit_gen_exit(jitstate_t* jit, ctx_t* ctx, codeblock_t* cb, VALUE* exit_pc) { // Write the adjusted SP back into the CFP - if (ctx->stack_size != 0) + if (ctx->sp_offset != 0) { x86opnd_t stack_pointer = ctx_sp_opnd(ctx, 0); lea(cb, REG_SP, stack_pointer); -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/