ZJIT: Add gen_stack_overflow_check to CCallWithFrame

This commit is contained in:
Aiden Fox Ivey 2025-10-24 17:03:14 -04:00 committed by GitHub
parent a9f24aaccb
commit 8b6564d149
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
Notes: git 2025-10-24 21:05:00 +00:00
Merged: https://github.com/ruby/ruby/pull/14939

Merged-By: XrXr

View File

@ -706,6 +706,7 @@ fn gen_ccall_with_frame(
state: &FrameState,
) -> lir::Opnd {
gen_incr_counter(asm, Counter::non_variadic_cfunc_optimized_send_count);
gen_stack_overflow_check(jit, asm, state, state.stack_size());
let caller_stack_size = state.stack_size() - args.len();