forked from weaselab/conflict-set
Attempt valgrind fix
This commit is contained in:
@@ -266,6 +266,10 @@ struct BoundedFreeListAllocator {
|
|||||||
memcpy(&freeList, freeList, sizeof(freeList));
|
memcpy(&freeList, freeList, sizeof(freeList));
|
||||||
--freeListSize;
|
--freeListSize;
|
||||||
VALGRIND_MAKE_MEM_UNDEFINED(n, sizeof(T));
|
VALGRIND_MAKE_MEM_UNDEFINED(n, sizeof(T));
|
||||||
|
#ifndef NDEBUG
|
||||||
|
VALGRIND_MAKE_MEM_DEFINED(&n->partialKeyCapacity,
|
||||||
|
sizeof(n->partialKeyCapacity));
|
||||||
|
#endif
|
||||||
return new (n) T;
|
return new (n) T;
|
||||||
}
|
}
|
||||||
VALGRIND_MAKE_MEM_NOACCESS(n, sizeof(T));
|
VALGRIND_MAKE_MEM_NOACCESS(n, sizeof(T));
|
||||||
|
|||||||
Reference in New Issue
Block a user