diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2011-01-10 03:56:42 -0800 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2011-01-10 03:56:42 -0800 |
commit | dc64732dee916535b555cbddf4c7590c14e72b9e (patch) | |
tree | 09c3b2b442d9205392c477e785409bdfe37de4be /src/arch | |
parent | 6f1187943cf78c2fd0334bd7e4372ae79a587fa4 (diff) | |
download | gem5-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