Skip to content

Commit 59d1539

Browse files
authored
Merge pull request #16891 from JuliaLang/yyc/gc/fix-wb
Fix wrong write barrier
2 parents 85d098c + c2a7c5f commit 59d1539

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codegen.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3546,7 +3546,7 @@ static Function *gen_cfun_wrapper(jl_function_t *ff, jl_value_t *jlrettype, jl_t
35463546

35473547
// Save the Function object reference
35483548
sf->func.value = jl_box_voidpointer((void*)cw_proto);
3549-
jl_gc_wb(&sf->func.value, sf);
3549+
jl_gc_wb(sf, sf->func.value);
35503550

35513551
// See whether this function is specsig or jlcall or generic (unknown)
35523552
bool specsig, jlfunc_sret;

0 commit comments

Comments
 (0)