|
From: <sv...@va...> - 2005-06-26 17:26:34
|
Author: njn
Date: 2005-06-26 18:26:22 +0100 (Sun, 26 Jun 2005)
New Revision: 4033
Log:
Remove empty sanity check function. And clean up sanity checking in=20
m_scheduler a little.
Modified:
trunk/coregrind/m_scheduler/scheduler.c
trunk/coregrind/m_transtab.c
trunk/coregrind/pub_core_transtab.h
Modified: trunk/coregrind/m_scheduler/scheduler.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_scheduler/scheduler.c 2005-06-26 15:11:37 UTC (rev =
4032)
+++ trunk/coregrind/m_scheduler/scheduler.c 2005-06-26 17:26:22 UTC (rev =
4033)
@@ -1092,24 +1092,14 @@
VGP_PUSHCC(VgpCoreExpensiveSanity);
sanity_slow_count++;
=20
-# if 0
- { void zzzmemscan(void); zzzmemscan(); }
-# endif
-
- if ((sanity_fast_count % 250) =3D=3D 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);
}
=20
- /* Check that Segments and /proc/self/maps match up */
- //vg_assert(VG_(sanity_check_memory)());
-
/* Look for stack overruns. Visit all threads. */
- for(tid =3D 1; tid < VG_N_THREADS; tid++) {
+ for (tid =3D 1; tid < VG_N_THREADS; tid++) {
SSizeT remains;
=20
if (VG_(threads)[tid].status =3D=3D VgTs_Empty ||
@@ -1124,9 +1114,6 @@
tid, remains);
}
=20
- /*=20
- if ((sanity_fast_count % 500) =3D=3D 0) VG_(mallocSanityCheckAll)(=
);=20
- */
VGP_POPCC(VgpCoreExpensiveSanity);
}
=20
Modified: trunk/coregrind/m_transtab.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_transtab.c 2005-06-26 15:11:37 UTC (rev 4032)
+++ trunk/coregrind/m_transtab.c 2005-06-26 17:26:22 UTC (rev 4033)
@@ -578,15 +578,6 @@
=20
=20
/*------------------------------------------------------------*/
-/*--- Sanity checking ---*/
-/*------------------------------------------------------------*/
-
-void VG_(sanity_check_tt_tc) ( Char* who )
-{
-}
-
-
-/*------------------------------------------------------------*/
/*--- Initialisation. ---*/
/*------------------------------------------------------------*/
=20
Modified: trunk/coregrind/pub_core_transtab.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/pub_core_transtab.h 2005-06-26 15:11:37 UTC (rev 4032=
)
+++ trunk/coregrind/pub_core_transtab.h 2005-06-26 17:26:22 UTC (rev 4033=
)
@@ -57,8 +57,6 @@
=20
extern void VG_(discard_translations) ( Addr64 start, UInt range );
=20
-extern void VG_(sanity_check_tt_tc) ( Char* caller );
-
extern void VG_(print_tt_tc_stats) ( void );
=20
extern UInt VG_(get_bbs_translated) ( void );
|