From 6f8623b5d7c94d91a8671b85660bcaa732d9c7c3 Mon Sep 17 00:00:00 2001 From: Nathaniel Filardo Date: Thu, 25 Apr 2019 14:31:17 +0100 Subject: [PATCH] Remove spurious store to pagemap The same operation was just done one the other side of the loop above and the loop does not modify this location in the map. --- src/mem/chunkmap.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mem/chunkmap.h b/src/mem/chunkmap.h index 1a9504f..b261293 100644 --- a/src/mem/chunkmap.h +++ b/src/mem/chunkmap.h @@ -211,8 +211,6 @@ namespace snmalloc ss, static_cast(64 + i + SUPERSLAB_BITS), run); ss = ss + SUPERSLAB_SIZE * run; } - PagemapProvider::pagemap().set( - address_cast(p), static_cast(size_bits)); } /** * Update the pagemap to remove a large allocation, of `size` bytes from