From: Nicholas Nethercote Date: Sun, 26 Jun 2005 17:26:22 +0000 (+0000) Subject: Remove empty sanity check function. And clean up sanity checking in X-Git-Tag: svn/VALGRIND_3_0_0~285 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f2ab7071485909f4d282d2b00499dbe1816f908;p=thirdparty%2Fvalgrind.git Remove empty sanity check function. And clean up sanity checking in m_scheduler a little. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4033 --- diff --git a/coregrind/m_scheduler/scheduler.c b/coregrind/m_scheduler/scheduler.c index 09c31a6ddd..17c35ff9aa 100644 --- a/coregrind/m_scheduler/scheduler.c +++ b/coregrind/m_scheduler/scheduler.c @@ -1092,24 +1092,14 @@ void VG_(sanity_check_general) ( Bool force_expensive ) VGP_PUSHCC(VgpCoreExpensiveSanity); sanity_slow_count++; -# if 0 - { void zzzmemscan(void); zzzmemscan(); } -# endif - - if ((sanity_fast_count % 250) == 0) - VG_(sanity_check_tt_tc)("VG_(sanity_check_general)"); - if (VG_(needs).sanity_checks) { VGP_PUSHCC(VgpToolExpensiveSanity); vg_assert(VG_TDICT_CALL(tool_expensive_sanity_check)); VGP_POPCC(VgpToolExpensiveSanity); } - /* Check that Segments and /proc/self/maps match up */ - //vg_assert(VG_(sanity_check_memory)()); - /* Look for stack overruns. Visit all threads. */ - for(tid = 1; tid < VG_N_THREADS; tid++) { + for (tid = 1; tid < VG_N_THREADS; tid++) { SSizeT remains; if (VG_(threads)[tid].status == VgTs_Empty || @@ -1124,9 +1114,6 @@ void VG_(sanity_check_general) ( Bool force_expensive ) tid, remains); } - /* - if ((sanity_fast_count % 500) == 0) VG_(mallocSanityCheckAll)(); - */ VGP_POPCC(VgpCoreExpensiveSanity); } diff --git a/coregrind/m_transtab.c b/coregrind/m_transtab.c index d004ef4932..0684cd4e5b 100644 --- a/coregrind/m_transtab.c +++ b/coregrind/m_transtab.c @@ -577,15 +577,6 @@ void VG_(discard_translations) ( Addr64 guest_start, UInt range ) } -/*------------------------------------------------------------*/ -/*--- Sanity checking ---*/ -/*------------------------------------------------------------*/ - -void VG_(sanity_check_tt_tc) ( Char* who ) -{ -} - - /*------------------------------------------------------------*/ /*--- Initialisation. ---*/ /*------------------------------------------------------------*/ diff --git a/coregrind/pub_core_transtab.h b/coregrind/pub_core_transtab.h index 4d1f5befa4..bb8651008e 100644 --- a/coregrind/pub_core_transtab.h +++ b/coregrind/pub_core_transtab.h @@ -57,8 +57,6 @@ extern Bool VG_(search_transtab) ( /*OUT*/AddrH* result, extern void VG_(discard_translations) ( Addr64 start, UInt range ); -extern void VG_(sanity_check_tt_tc) ( Char* caller ); - extern void VG_(print_tt_tc_stats) ( void ); extern UInt VG_(get_bbs_translated) ( void );