[Openmp-commits] [PATCH] D94256: [OpenMP] Fixed the issue that memory manager calls plugin interface to release buffered memory even after the plugin has been destroyed
Shilei Tian via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Jan 7 19:39:46 PST 2021
tianshilei1992 marked an inline comment as done.
tianshilei1992 added a comment.
In D94256#2485287 <https://reviews.llvm.org/D94256#2485287>, @JonChesterfield wrote:
> I suppose this is better, though it seems backwards to me. Plus we still leak memory with this design.
The memory will be eventually released by the driver if the process is terminated, right?
> I was hoping the plugin would expose a function that libomptarget calls to do the cleanup, in place of today's global destructor. Libomptarget can then do an ordered cleanup, after the memory manager destructor has run.
I have some new ideas to make the cleanup possible. Will update the patch accordingly.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94256/new/
https://reviews.llvm.org/D94256
More information about the Openmp-commits
mailing list