From 13de480bdeec2718a256612e38b2c8a050cc0155 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sun, 24 Mar 2019 20:24:40 -0400 Subject: [PATCH] rename quarantine bitmap field for clarity --- h_malloc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/h_malloc.c b/h_malloc.c index 81642bd..54f129a 100644 --- a/h_malloc.c +++ b/h_malloc.c @@ -88,7 +88,7 @@ struct slab_metadata { u16 count; #endif #if SLAB_QUARANTINE - u64 quarantine[4]; + u64 quarantine_bitmap[4]; #endif }; @@ -315,17 +315,17 @@ static bool get_slot(struct slab_metadata *metadata, size_t index) { #if SLAB_QUARANTINE static void set_quarantine(struct slab_metadata *metadata, size_t index) { size_t bucket = index / 64; - metadata->quarantine[bucket] |= 1UL << (index - bucket * 64); + metadata->quarantine_bitmap[bucket] |= 1UL << (index - bucket * 64); } static void clear_quarantine(struct slab_metadata *metadata, size_t index) { size_t bucket = index / 64; - metadata->quarantine[bucket] &= ~(1UL << (index - bucket * 64)); + metadata->quarantine_bitmap[bucket] &= ~(1UL << (index - bucket * 64)); } static bool get_quarantine(struct slab_metadata *metadata, size_t index) { size_t bucket = index / 64; - return (metadata->quarantine[bucket] >> (index - bucket * 64)) & 1UL; + return (metadata->quarantine_bitmap[bucket] >> (index - bucket * 64)) & 1UL; } #endif