Files
gem5/src/mem
Jordi Vaquero e5a82da26e cpu, mem: Changing AtomicOpFunctor* for unique_ptr<AtomicOpFunctor>
This change is based on modify the way we move the AtomicOpFunctor*
through gem5 in order to mantain proper ownership of the object and
ensuring its destruction when it is no longer used.

Doing that we fix at the same time a memory leak in Request.hh
where we were assigning a new AtomicOpFunctor* without destroying the
previous one.

This change creates a new type AtomicOpFunctor_ptr as a
std::unique_ptr<AtomicOpFunctor> and move its ownership as needed. Except
for its only usage when AtomicOpFunc() is called.

Change-Id: Ic516f9d8217cb1ae1f0a19500e5da0336da9fd4f
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20919
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
2019-09-23 12:32:08 +00:00
..
2019-09-12 19:40:58 +00:00
2019-04-28 01:19:40 +00:00
2019-09-10 07:00:09 +00:00
2019-04-28 01:19:40 +00:00
2019-04-28 01:19:40 +00:00
2019-04-28 01:19:40 +00:00
2019-04-19 16:34:00 +00:00
2019-08-09 01:41:43 +00:00
2019-04-28 01:19:40 +00:00
2019-04-16 14:36:14 +00:00
2019-04-28 01:19:40 +00:00
2019-04-28 01:19:40 +00:00
2019-04-28 01:19:40 +00:00