[Openmp-commits] [PATCH] D84472: [OpenMP] Fix releasing of stack memory
Joachim Protze via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Jul 24 04:34:04 PDT 2020
protze.joachim updated this revision to Diff 280403.
protze.joachim added a comment.
After harbormaster highlighted the issue, this is the patch to solve the issue.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84472/new/
https://reviews.llvm.org/D84472
Files:
openmp/runtime/src/kmp_taskdeps.cpp
Index: openmp/runtime/src/kmp_taskdeps.cpp
===================================================================
--- openmp/runtime/src/kmp_taskdeps.cpp
+++ openmp/runtime/src/kmp_taskdeps.cpp
@@ -771,6 +771,8 @@
kmp_depnode_t node = {0};
__kmp_init_node(&node);
+ // the stack owns the node
+ __kmp_node_ref(&node);
if (!__kmp_check_deps(gtid, &node, NULL, ¤t_task->td_dephash,
DEP_BARRIER, ndeps, dep_list, ndeps_noalias,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84472.280403.patch
Type: text/x-patch
Size: 468 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20200724/2036cb25/attachment.bin>
More information about the Openmp-commits
mailing list