Review Board 2.0.15


mem: Use shared_ptr for Ruby Message classes

Review Request #2445 - Created Sept. 29, 2014 and submitted

Information
Andreas Hansson
gem5
default
Reviewers
Default
Changeset 10441:d6a4b669100c
---------------------------
mem: Use shared_ptr for Ruby Message classes

This patch transitions the Ruby Message and its derived classes from
the ad-hoc RefCountingPtr to the c++11 shared_ptr. There are no
changes in behaviour, and the code modifications are mainly replacing
"new" with "make_shared".

The cloning of derived messages is slightly changed as they previously
relied on overriding the base-class through covariant return types.

   
Review request changed
Updated (Oct. 16, 2014, 3:40 a.m.)

Status: Closed (submitted)