Skip to content

Commit

Permalink
fix analyzegc check, really
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Oct 29, 2024
1 parent 6ce4380 commit 515b0bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/staticdata_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,9 @@ static void jl_record_edges(jl_method_instance_t *caller, jl_array_t *edges)
{
jl_code_instance_t *ci = jl_atomic_load_relaxed(&caller->cache);
while (ci != NULL) {
jl_svec_t *edges = jl_atomic_load_relaxed(&codeinst->edges);
if (edges && edges != jl_emptysvec && jl_atomic_load_relaxed(&ci->max_world) == ~(size_t)0)
if (jl_atomic_load_relaxed(&ci->edges) &&
jl_atomic_load_relaxed(&ci->edges) != jl_emptysvec &&
jl_atomic_load_relaxed(&ci->max_world) == ~(size_t)0)
jl_array_ptr_1d_push(edges, (jl_value_t*)ci);
ci = jl_atomic_load_relaxed(&ci->next);
}
Expand Down

0 comments on commit 515b0bf

Please sign in to comment.