From fa41cb30d84f567becd1779db47ada04a24af177 Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Wed, 12 Oct 2005 10:51:01 +0000 Subject: [PATCH] Notify the tool via tool_discard_basic_block_info() about translations thrown away due to lack of space. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4908 --- coregrind/m_transtab.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/coregrind/m_transtab.c b/coregrind/m_transtab.c index 3710e1395..94599a7cb 100644 --- a/coregrind/m_transtab.c +++ b/coregrind/m_transtab.c @@ -331,6 +331,11 @@ static void initialiseSector ( Int sno ) for (i = 0; i < N_TTES_PER_SECTOR; i++) { if (sectors[sno].tt[i].status == InUse) { n_dump_osize += vge_osize(§ors[sno].tt[i].vge); + /* Tell the tool too. */ + if (VG_(needs).basic_block_discards) { + VG_TDICT_CALL( tool_discard_basic_block_info, + sectors[sno].tt[i].vge ); + } } } if (VG_(clo_verbosity) > 2)