|
From: Nicholas N. <nj...@cs...> - 2006-08-24 06:33:03
|
On Wed, 23 Aug 2006, Bart Van Assche wrote: > BTW: pub_tool_execontext.h defines VG_(record_ExeContext)() but no > corresponding cleanup function ? That's correct. From coregrind/pub_core_execontext.h: // PURPOSE: This module provides an abstract data type, ExeContext, // which is a stack trace stored in such a way that duplicates are // avoided. This also facilitates fast comparisons if necessary. If an ExeContext is obtained that is the same as a previous one, the previous one that is already in the table will be used. This avoids having multiple copies of identical ExeContexts, which is really important, eg. if an instruction that triggers an error is run 100,000 times. (An ExeContext is really just a stack-trace that has been put into this table and so has this only-one-copy property.) Nick |