From 43ba21329b22833722a7baa0df7cb982e41a0876 Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Sat, 15 Jun 2024 18:11:18 -0700 Subject: [PATCH] Mark remainder of rightmost page no_access after gc --- VersionedMap.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/VersionedMap.cpp b/VersionedMap.cpp index c8c9a60..13606d7 100644 --- a/VersionedMap.cpp +++ b/VersionedMap.cpp @@ -378,6 +378,9 @@ struct MemManager { #endif } next = max + 1; + assert(firstUnaddressable >= next); + VALGRIND_MAKE_MEM_NOACCESS(base + next, + (firstUnaddressable - next) * sizeof(Node)); } int64_t getBytes() const {