|
From: Nicholas N. <nj...@ca...> - 2004-09-13 12:16:15
|
CVS commit by nethercote:
Fix off-by-one error when counting the number of BBs executed.
M +2 -2 vg_scheduler.c 1.184
--- valgrind/coregrind/vg_scheduler.c #1.183:1.184
@@ -1005,6 +1005,6 @@ VgSchedReturnCode do_scheduler ( Int* ex
counters. */
- done_this_time = (Int)dispatch_ctr_SAVED - (Int)VG_(dispatch_ctr) - 1;
- vg_assert(done_this_time >= 0);
+ done_this_time = (Int)dispatch_ctr_SAVED - (Int)VG_(dispatch_ctr);
+ vg_assert(done_this_time > 0);
VG_(bbs_done) += (ULong)done_this_time;
|