Skip to content

Memory deallocation in ESMC #269

Discussion options

You must be logged in to vote

Both sides, Fortran via ESMF_Finalize(), and C via ESMC_Finalize() end up in the same place for garbage collection handling, in ESMCI::VM::finalize(). There is currently code commented out inside ESMCI::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 the Finalize() method, and the application is about to shut down anyway, memory leaks are of no practical concern at that time…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@AbhiHampiholi
Comment options

@danrosen25
Comment options

@AbhiHampiholi
Comment options

@theurich
Comment options

Answer selected by AbhiHampiholi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment