Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpu-o3: fix a memory leak problem #274

Merged
merged 1 commit into from
Jan 23, 2025
Merged

cpu-o3: fix a memory leak problem #274

merged 1 commit into from
Jan 23, 2025

Conversation

happy-lx
Copy link
Contributor

After the cache refills the data, it sends a custom Bus_Clear packet to notify the LSU. This should only be sent by the Dcache, and neither L2 nor L3 should send this packet.

Calling recvFunctionalCustomSignal on the xbar does nothing, causing the custom packet to be lost, leading to a memory leak.

Thanks to @tastynoob finding this problem

Change-Id: Ie735660b66536908633daa6c25d76b7127add0b9

@happy-lx happy-lx requested a review from tastynoob January 21, 2025 08:25
@tastynoob
Copy link
Collaborator

Should delete pkt only when sig was hint or bus_clear

@happy-lx
Copy link
Contributor Author

Should delete pkt only when sig was hint or bus_clear

Yes I will fix it, the packet used by the hint is the packet from the mshr's target, which may not need to be deleted after the customEvent is completed. I can make a distinction between them.

@happy-lx happy-lx force-pushed the fix-bus-clear branch 3 times, most recently from a286de2 to a5e538a Compare January 23, 2025 02:09
After the cache refills the data, it sends a `Bus_Clear` packet to notify the LSU.
This should only be sent by the Dcache, and neither L2 nor L3 should send this packet.

Calling `recvFunctionalCustomSignal` on the xbar does nothing,
causing the custom packet to be lost, leading to a memory leak.

Change-Id: Ie735660b66536908633daa6c25d76b7127add0b9
@happy-lx happy-lx merged commit 68b85a3 into xs-dev Jan 23, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants