julia
a2accd62 - codegen: propagate caller GC stack argument to JIT ABI converter

Commit
74 days ago
codegen: propagate caller GC stack argument to JIT ABI converter When calling specializations using the JIT ABI converter on master, the caller's GC stack expectations were not fully propagated to the JIT converter, causing calling convention mismatches and segfaults. This change updates the JIT ABI converter to correctly track and configure the GC stack argument: - Add `gcstack_arg` field to `jl_abi_t` to hold the caller's GC stack expectations. - Update `jl_get_abi_converter` in `runtime_ccall.c` to extract `gcstack_arg` from `cfuncdata->flags` and populate it in `jl_abi_t`. - Update `jl_jit_abi_converter_impl` in `jitlayers.cpp` to use the passed `from_abi.gcstack_arg` to configure `out.params->gcstack_arg`. - Ensure we do not bypass wrapper generation if the compiled method's GC stack expectations do not match the caller's. - Propagate `target_gcstack_arg` to `emit_abi_converter` and configure codegen parameters accordingly.
Author
Parents
Loading