From 213b13ec9fb7005c063c4c644cd2705e8198ca7f Mon Sep 17 00:00:00 2001 From: Philippe Waroquiers Date: Sun, 13 Jan 2013 15:18:51 +0000 Subject: [PATCH] Comment only changes git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13227 --- coregrind/m_execontext.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/coregrind/m_execontext.c b/coregrind/m_execontext.c index 824a4b475..a2f4b3e65 100644 --- a/coregrind/m_execontext.c +++ b/coregrind/m_execontext.c @@ -45,9 +45,10 @@ /*--- Low-level ExeContext storage. ---*/ /*------------------------------------------------------------*/ -/* The first 4 IP values are used in comparisons to remove duplicate - errors, and for comparing against suppression specifications. The - rest are purely informational (but often important). +/* Depending on VgRes, the first 2, 4 or all IP values are used in + comparisons to remove duplicate errors, and for comparing against + suppression specifications. If not used in comparison, the rest + are purely informational (but often important). The contexts are stored in a traditional chained hash table, so as to allow quick determination of whether a new context already @@ -147,7 +148,8 @@ static void init_ExeContext_storage ( void ) Addr ips[1]; ips[0] = 0; null_ExeContext = record_ExeContext_wrk2(ips, 1); - vg_assert(null_ExeContext->ecu == 4); // null execontext must be the first one. + // null execontext must be the first one created and get ecu 4. + vg_assert(null_ExeContext->ecu == 4); } init_done = True;