Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix memory corruption by accessing freed spesh stats.
When cleaning up spesh stats that didn't get updated for a while, we free the MVMSpeshStats structure and remove the reference from the MVMStaticFrameSpesh object holding it. It may still be referenced from a MVMSpeshSimStackFrame however and when we continue processing this sim stack, we access some random memory. Look through all tc's spesh_sim_stacks for frames still referencing the MVMSpeshStats and just not free it if we find one.
- Loading branch information
Showing
1 changed file
with
52 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters