On Thu, Apr 8, 2010 at 8:25 AM, Dannie Stanley <dannie.stan...@gmail.com> wrote:
>
> 1) The VG_(HT_construct) requires a parmeter of HChar*, what is the
> purpose of this value? Is it like a unique key? If I need to
> dynamically create hashtables what is a good way to assign this value?
> I assume that they can't all have the same value.

It's just a name for debugging purposes, look in
coregrind/m_hashtable.c for details.  I'd use a different name for
each VG_(HT_construct)() call site.

> 2) For VG_(malloc), I don't think I will be using the cc parameter, is
> it safe just to just use the same cc value everywhere (like "foo")

This is used for profiling purposes.  Again, just use a different
string for each call site.

BTW, do you know about Redux?  http://www.valgrind.org/njn/pubs/redux2003.ps

Nick

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to