From cee930476223dfbd0bf2b9522f22d9c2bb6a8807 Mon Sep 17 00:00:00 2001 From: Diogo Netto Date: Sat, 6 May 2023 12:00:25 -0300 Subject: [PATCH] remove ages form gc-debug.c --- src/gc-debug.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/gc-debug.c b/src/gc-debug.c index eeb170f0299a1c..742b30e306c76b 100644 --- a/src/gc-debug.c +++ b/src/gc-debug.c @@ -580,14 +580,6 @@ JL_NO_ASAN static void gc_scrub_range(char *low, char *high) // Make sure the sweep rebuild the freelist pg->has_marked = 1; pg->has_young = 1; - // Find the age bit - char *page_begin = gc_page_data(tag) + GC_PAGE_OFFSET; - int obj_id = (((char*)tag) - page_begin) / osize; - uint32_t *ages = pg->ages + obj_id / 32; - // Force this to be a young object to save some memory - // (especially on 32bit where it's more likely to have pointer-like - // bit patterns) - *ages &= ~(1 << (obj_id % 32)); memset(tag, 0xff, osize); // set mark to GC_MARKED (young and marked) tag->bits.gc = GC_MARKED;