|
From: <sv...@va...> - 2009-08-05 22:51:34
|
Author: njn Date: 2009-08-05 23:51:17 +0100 (Wed, 05 Aug 2009) New Revision: 10723 Log: Document the 'cc' param of VG_(malloc) et al. Modified: trunk/include/pub_tool_mallocfree.h Modified: trunk/include/pub_tool_mallocfree.h =================================================================== --- trunk/include/pub_tool_mallocfree.h 2009-08-05 22:13:23 UTC (rev 10722) +++ trunk/include/pub_tool_mallocfree.h 2009-08-05 22:51:17 UTC (rev 10723) @@ -35,6 +35,8 @@ // These can be for allocating memory used by tools. // Nb: the allocators *always succeed* -- they never return NULL (Valgrind // will abort if they can't allocate the memory). +// The 'cc' is a string that identifies the allocation point. It's used when +// --profile-heap=yes is specified. extern void* VG_(malloc) ( HChar* cc, SizeT nbytes ); extern void VG_(free) ( void* p ); extern void* VG_(calloc) ( HChar* cc, SizeT n, SizeT bytes_per_elem ); |