summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2011-01-10 03:56:42 -0800
committerGabe Black <gblack@eecs.umich.edu>2011-01-10 03:56:42 -0800
commitdc64732dee916535b555cbddf4c7590c14e72b9e (patch)
tree09c3b2b442d9205392c477e785409bdfe37de4be /src/arch
parent6f1187943cf78c2fd0334bd7e4372ae79a587fa4 (diff)
downloadgem5-dc64732dee916535b555cbddf4c7590c14e72b9e.tar.xz
RefCount: Add a unit test for reference counting pointers.
This test exercises each of the functions in the reference counting pointer implementation individually (except get()) and verifies they have some minimially expected behavior. It also checks that reference counted objects are freed when their usage count goes to 0 in some basic situations, specifically a pointer being set to NULL and a pointer being deleted.
Diffstat (limited to 'src/arch')
0 files changed, 0 insertions, 0 deletions