diff options
author | Nathan Binkert <binkertn@umich.edu> | 2003-12-20 16:25:48 -0500 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2003-12-20 16:25:48 -0500 |
commit | 520442b01afb3742a6dde552b8d62351d2200aba (patch) | |
tree | 52cd2f5735eb6c50fd44b7d208f7d9266a2dd208 /base/statistics.cc | |
parent | 598a24073385e421b1369637f64f06edd5a4d11e (diff) | |
download | gem5-520442b01afb3742a6dde552b8d62351d2200aba.tar.xz |
Fix a bunch of memory leak type bugs, and add some better
checking in places to make sure stuff is behaving properly.
base/statistics.cc:
separate the per stat check from the general stats check.
We always want the general stuff to happen
base/statistics.hh:
- separate the per stat check from the general stats check.
we always want the general stuff to happen
- make every stat check that its bin is at least initialized
- set the vector2d x and y coordinates in init to prevent an
uninitialized memory access
test/Makefile:
don't need sim_time.o to test stats
test/stattest.cc:
don't make x and y the same on the 2d test so that we make
sure that the two dimensions are correct
--HG--
extra : convert_revision : 81320325056ac1c09f6842474fb6ee3bcc030a8e
Diffstat (limited to 'base/statistics.cc')
-rw-r--r-- | base/statistics.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/statistics.cc b/base/statistics.cc index 726ea3c60..81b8856ca 100644 --- a/base/statistics.cc +++ b/base/statistics.cc @@ -344,7 +344,7 @@ StatData::less(StatData *stat1, StatData *stat2) } bool -StatData::check() const +StatData::baseCheck() const { if (!init) { #ifdef STAT_DEBUG |