diff options
author | Jon Chesterfield <jonathanchesterfield@gmail.com> | 2022-07-28 20:00:01 +0100 |
---|---|---|
committer | Jon Chesterfield <jonathanchesterfield@gmail.com> | 2022-07-28 20:00:03 +0100 |
commit | ed0f21811544320f829124efbb6a38ee12eb9155 (patch) | |
tree | 4b82ae298420c19acf258482fa1ebd89d8bb8cfd /lldb/unittests/Target/ModuleCacheTest.cpp | |
parent | e74197bc12f68c4e7940574bec5f983297db56f8 (diff) | |
download | llvm-ed0f21811544320f829124efbb6a38ee12eb9155.zip llvm-ed0f21811544320f829124efbb6a38ee12eb9155.tar.gz llvm-ed0f21811544320f829124efbb6a38ee12eb9155.tar.bz2 |
[openmp][amdgpu] Tear down amdgpu plugin accurately
Moves DeviceInfo global to heap to accurately control lifetime.
Moves calls from libomptarget to deinit_plugin later, plugins need to stay
alive until very shortly before libomptarget is destructed.
Leaving the deinit_plugin calls where initially inserted hits use after
free from the dynamic_module.c offloading test (verified with valgrind
that the new location is sound with respect to this)
Reviewed By: tianshilei1992
Differential Revision: https://reviews.llvm.org/D130714
Diffstat (limited to 'lldb/unittests/Target/ModuleCacheTest.cpp')
0 files changed, 0 insertions, 0 deletions