Memory deallocation in ESMC #269
-
Requirements
Affiliation(s)AirMettle, Inc ESMF Version8.6.0 IssueHello,
I've attached a reproducible example here (copied from the example @danrosen25 sent me yesterday) test_memleak.tar.gz
Autotag |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
@theurich |
Beta Was this translation helpful? Give feedback.
-
Both sides, Fortran via As for the |
Beta Was this translation helpful? Give feedback.
Both sides, Fortran via
ESMF_Finalize()
, and C viaESMC_Finalize()
end up in the same place for garbage collection handling, inESMCI::VM::finalize()
. There is currently code commented out insideESMCI::VM::finalize()
that deals with deleting the garbage collection entries. As I recall, on some systems strange issues were popping up under some large applications, which might have had to do with cross-referencing objects (like Grids used in multiple fields, etc.) and the order of the take down. The quick "fix" was to comment out those delete lines. Since this is in theFinalize()
method, and the application is about to shut down anyway, memory leaks are of no practical concern at that time…