Skip to content

Commit

Permalink
fixup! Delay marking of finished tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Dec 29, 2022
1 parent f9c4674 commit c2c7778
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3264,6 +3264,7 @@ static int _jl_gc_collect(jl_ptls_t ptls, jl_gc_collection_t collection)
// Tasks hold on to state quite a bit even after they are finished
// So we process the thread_local state of finished tasks delayed.
assert(gc_n_threads);
gc_mark_sp_init(gc_cache, &sp);
for (int t_i = 0; t_i < gc_n_threads; t_i++) {
jl_ptls_t ptls2 = gc_all_tls_states[t_i];
if (ptls2 == NULL)
Expand Down

0 comments on commit c2c7778

Please sign in to comment.