Attempt valgrind fix

This commit is contained in:
2024-03-08 15:00:40 -08:00
parent e5051bac9e
commit 1437280ec7
+4
View File
@@ -266,6 +266,10 @@ struct BoundedFreeListAllocator {
memcpy(&freeList, freeList, sizeof(freeList));
--freeListSize;
VALGRIND_MAKE_MEM_UNDEFINED(n, sizeof(T));
#ifndef NDEBUG
VALGRIND_MAKE_MEM_DEFINED(&n->partialKeyCapacity,
sizeof(n->partialKeyCapacity));
#endif
return new (n) T;
}
VALGRIND_MAKE_MEM_NOACCESS(n, sizeof(T));