Skip to content

Commit

Permalink
Fixup: also respect allow_new_world in jl_method_table_add_backedge
Browse files Browse the repository at this point in the history
  • Loading branch information
Drvi committed Nov 14, 2024
1 parent a79cee8 commit 917f872
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1756,6 +1756,8 @@ JL_DLLEXPORT void jl_method_instance_add_backedge(jl_method_instance_t *callee,
// add a backedge from a non-existent signature to caller
JL_DLLEXPORT void jl_method_table_add_backedge(jl_methtable_t *mt, jl_value_t *typ, jl_value_t *caller)
{
if (!jl_atomic_load_acquire(&allow_new_worlds))
return;
JL_LOCK(&mt->writelock);
if (!mt->backedges) {
// lazy-init the backedges array
Expand Down

0 comments on commit 917f872

Please sign in to comment.