We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb08446 commit f61b9d9Copy full SHA for f61b9d9
src/gc.c
@@ -3709,8 +3709,9 @@ static int _jl_gc_collect(jl_ptls_t ptls, jl_gc_collection_t collection)
3709
}
3710
// free empty GC state for threads that have exited
3711
if (jl_atomic_load_relaxed(&ptls2->current_task) == NULL) {
3712
- if (gc_is_parallel_collector_thread(t_i))
3713
- continue;
+ // GC threads should never exit
+ assert(!gc_is_parallel_collector_thread(t_i));
3714
+ assert(!gc_is_concurrent_collector_thread(t_i));
3715
jl_thread_heap_t *heap = &ptls2->gc_tls.heap;
3716
if (heap->weak_refs.len == 0)
3717
small_arraylist_free(&heap->weak_refs);
0 commit comments