diff options
author | Joel Hestness <jthestness@gmail.com> | 2015-09-29 09:28:26 -0500 |
---|---|---|
committer | Joel Hestness <jthestness@gmail.com> | 2015-09-29 09:28:26 -0500 |
commit | c05d268cfabbe26d032d73abcea6dc921c49e549 (patch) | |
tree | 9a868b284e3e7e1a45dfdb6d31338e0139fa048e /src/mem/addr_mapper.hh | |
parent | 0ecaab4ea8039f707a95f5e3efcc68591dbcd407 (diff) | |
download | gem5-c05d268cfabbe26d032d73abcea6dc921c49e549.tar.xz |
ruby: Fix CacheMemory allocate leak
If a cache entry permission was previously set to NotPresent, but the entry was
not deleted, a following cache allocation can cause the entry to be leaked by
setting the entry pointer to a newly allocated entry. To eliminate this
possibility, check if the new entry is different from the old one, and if so,
delete the old one.
Diffstat (limited to 'src/mem/addr_mapper.hh')
0 files changed, 0 insertions, 0 deletions