[Openmp-commits] [openmp] r287552 - Set task->td_dephash to NULL after free
Jonathan Peyton via Openmp-commits
openmp-commits at lists.llvm.org
Mon Nov 21 08:24:59 PST 2016
Author: jlpeyton
Date: Mon Nov 21 10:24:59 2016
New Revision: 287552
URL: http://llvm.org/viewvc/llvm-project?rev=287552&view=rev
Log:
Set task->td_dephash to NULL after free
Modified:
openmp/trunk/runtime/src/kmp_taskdeps.cpp
Modified: openmp/trunk/runtime/src/kmp_taskdeps.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_taskdeps.cpp?rev=287552&r1=287551&r2=287552&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_taskdeps.cpp (original)
+++ openmp/trunk/runtime/src/kmp_taskdeps.cpp Mon Nov 21 10:24:59 2016
@@ -378,6 +378,7 @@ __kmp_release_deps ( kmp_int32 gtid, kmp
if ( task->td_dephash ) {
KA_TRACE(40, ("__kmp_release_deps: T#%d freeing dependencies hash of task %p.\n", gtid, task ) );
__kmp_dephash_free(thread,task->td_dephash);
+ task->td_dephash = NULL;
}
if ( !node ) return;
More information about the Openmp-commits
mailing list