-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue716 memory leaks in dynamics (#722)
# memory leaks in dynamics Fixes #716 # Change Description With #674 integrated, all dynamic buffers held by modules should get freed before the program terminates. This update replaces raw pointers with `std::unique_ptr` for heap buffers that are used internally by the dynamics. # Test Description A manual test was done by running the dynamics benchmark for 1 time step with valgrind: ``` ==74249== LEAK SUMMARY: ==74249== definitely lost: 0 bytes in 0 blocks ==74249== indirectly lost: 0 bytes in 0 blocks ==74249== possibly lost: 7,600 bytes in 19 blocks ==74249== still reachable: 110,406 bytes in 717 blocks ==74249== suppressed: 0 bytes in 0 blocks ``` The setup that was used is not suited for an automated test as it is takes too long (init + 1 step on 32x32 grid takes upwards of 30mins).
- Loading branch information
Showing
6 changed files
with
13 additions
and
14 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
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
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
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
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
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