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 c6d079c commit 71cf71dCopy full SHA for 71cf71d
src/gc.c
@@ -3715,8 +3715,9 @@ static int _jl_gc_collect(jl_ptls_t ptls, jl_gc_collection_t collection)
3715
}
3716
// free empty GC state for threads that have exited
3717
if (jl_atomic_load_relaxed(&ptls2->current_task) == NULL) {
3718
- if (gc_is_parallel_collector_thread(t_i))
3719
- continue;
+ // GC threads should never exit
+ assert(!gc_is_parallel_collector_thread(t_i));
3720
+ assert(!gc_is_concurrent_collector_thread(t_i));
3721
jl_thread_heap_t *heap = &ptls2->gc_tls.heap;
3722
if (heap->weak_refs.len == 0)
3723
small_arraylist_free(&heap->weak_refs);
0 commit comments