From 428d249a8bcf99bbe85e0e0d4dc0012db880c80d Mon Sep 17 00:00:00 2001 From: Diogo Netto Date: Fri, 5 May 2023 10:03:14 -0300 Subject: [PATCH] msk is dead code --- src/gc.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/gc.c b/src/gc.c index 5a593da0cf528..19d2764d22ef6 100644 --- a/src/gc.c +++ b/src/gc.c @@ -1390,11 +1390,7 @@ static jl_taggedvalue_t **sweep_page(jl_gc_pool_t *p, jl_gc_pagemeta_t *pg, jl_t int16_t prev_nold = 0; int pg_nfree = 0; jl_taggedvalue_t **pfl_begin = NULL; - uint32_t msk = 1; // mask for the age bit in the current age byte while ((char*)v <= lim) { - if (!msk) { - msk = 1; - } int bits = v->bits.gc; if (!gc_marked(bits)) { *pfl = v; @@ -1411,7 +1407,6 @@ static jl_taggedvalue_t **sweep_page(jl_gc_pool_t *p, jl_gc_pagemeta_t *pg, jl_t freedall = 0; } v = (jl_taggedvalue_t*)((char*)v + osize); - msk <<= 1; } assert(!freedall); pg->has_marked = has_marked; @@ -2766,7 +2761,7 @@ void gc_mark_loop_barrier(void) void gc_mark_clean_reclaim_sets(void) { - // Clean up `reclaim-sets` and reset `top/bottom` of queues + // Clean up `reclaim-sets` for (int i = 0; i < gc_n_threads; i++) { jl_ptls_t ptls2 = gc_all_tls_states[i]; arraylist_t *reclaim_set2 = &ptls2->mark_queue.reclaim_set;