ruby: RubyPort delete snoop requests
Review Request #3115 - Created Sept. 16, 2015 and submitted
| Information | |
|---|---|
| Joel Hestness | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 11144:f3dcf1be17c4 --------------------------- ruby: RubyPort delete snoop requests In RubyPort::ruby_eviction_callback, prior changes fixed a memory leak caused by instantiating separate packets for each port that the eviction was forwarded to. That change, however, left the instantiated request to also leak. Allocate it on the stack to avoid the leak.
Compiled gem5.debug with --without-tcmalloc. Ran large tests with Valgrind.
-
src/mem/ruby/system/RubyPort.cc (Diff revision 1) -
Do we know for sure that the receiving end is not going to delete the request?
-
src/mem/ruby/system/RubyPort.cc (Diff revision 1) -
Why call new here in the first place?
Change Summary:
Per Andreas' suggestion, allocate request on stack.
Description: |
|
|||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+2 -2) |
-
src/mem/ruby/system/RubyPort.cc (Diff revision 2) -
Can we make the size a sensible value (a cacheline size)?
Description: |
|
|||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 3 (+3 -2) |
Could you update the comments in the code? Also, the patch description is somewhat misleading after the changes. No need to re-post.
