|
From: <sv...@va...> - 2006-06-02 22:32:09
|
Author: njn
Date: 2006-06-02 23:32:02 +0100 (Fri, 02 Jun 2006)
New Revision: 5949
Log:
Add a helpful comment.
Modified:
trunk/include/valgrind.h
Modified: trunk/include/valgrind.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/include/valgrind.h 2006-06-01 13:44:07 UTC (rev 5948)
+++ trunk/include/valgrind.h 2006-06-02 22:32:02 UTC (rev 5949)
@@ -2442,6 +2442,11 @@
you could miss an error this way). See memcheck/tests/custom_alloc.c
for an example.
=20
+ WARNING: if your allocator uses malloc() or 'new' to allocate
+ superblocks, rather than mmap() or brk(), this will not work properly=
--
+ you'll likely get assertion failures during leak detection. This is
+ because Valgrind doesn't like seeing overlapping heap blocks. Sorry.
+
Nb: block must be freed via a free()-like function specified
with VALGRIND_FREELIKE_BLOCK or mismatch errors will occur. */
#define VALGRIND_MALLOCLIKE_BLOCK(addr, sizeB, rzB, is_zeroed) \
|