[Openmp-commits] [PATCH] D122014: [OpenMP][CUDA] Fix potential program crash caused by double free resources
Shilei Tian via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Mar 18 09:44:38 PDT 2022
tianshilei1992 added inline comments.
================
Comment at: openmp/libomptarget/plugins/cuda/src/rtl.cpp:300
/// However, it doesn't matter, because they're always on the two sides of
/// `Next`. The left one will in the end be overwritten by another resource.
/// Therefore, after several execution, the order of pool might be different
----------------
This is the key part. Unluckily if the resources are not returned, the left one will never be overwritten.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122014/new/
https://reviews.llvm.org/D122014
More information about the Openmp-commits
mailing list