mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-12 06:11:37 +00:00
Comment only changes.
* Clarify in the dedup pool comments that all bytes of elements are compared.
* pub_core_options.h : remove old/misplaced comment for clo_trace_children
and replace by a more clear comment (matching the --help)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14704
This commit is contained in:
@@ -94,12 +94,19 @@ extern DedupPoolAlloc* VG_(newDedupPA) ( SizeT poolSzB,
|
||||
void (*free_fn)(void*) );
|
||||
|
||||
/* Allocates a new element from ddpa with eltSzB bytes to store elt.
|
||||
This function never returns NULL. */
|
||||
This function never returns NULL.
|
||||
If ddpa already contains an element equal to elt, then the address of
|
||||
the already existing element is returned.
|
||||
Equality between elements is done by comparing all bytes.
|
||||
So, if void *elt points to a struct, be sure to initialise all components
|
||||
and the holes between components. */
|
||||
extern const void* VG_(allocEltDedupPA) (DedupPoolAlloc *ddpa,
|
||||
SizeT eltSzB, const void *elt);
|
||||
|
||||
/* Allocates a new (fixed size) element from ddpa. Returns the
|
||||
unique number identifying this element. This function never returns NULL. */
|
||||
unique number identifying this element. This function never returns NULL.
|
||||
Similarly to VG_(allocEltDedupPA), this will return the unique number
|
||||
of an already existing identical element to elt. */
|
||||
extern UInt VG_(allocFixedEltDedupPA) (DedupPoolAlloc *ddpa,
|
||||
SizeT eltSzB, const void *elt);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user