[all-commits] [llvm/llvm-project] 279237: [OpenMP] libomp: taskwait depend implementation fi...

Andrey Churbanov via All-commits all-commits at lists.llvm.org
Thu Aug 5 10:14:02 PDT 2021


  Branch: refs/heads/release/13.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 279237937b330d8ca570ffa7b0cb7e1bbda57fca
      https://github.com/llvm/llvm-project/commit/279237937b330d8ca570ffa7b0cb7e1bbda57fca
  Author: AndreyChurbanov <andrey.churbanov at intel.com>
  Date:   2021-08-05 (Thu, 05 Aug 2021)

  Changed paths:
    M openmp/runtime/src/kmp_taskdeps.cpp
    M openmp/runtime/src/kmp_taskdeps.h
    A openmp/runtime/test/tasking/kmp_taskwait_depend_in.c

  Log Message:
  -----------
  [OpenMP] libomp: taskwait depend implementation fixed.

Fix for https://bugs.llvm.org/show_bug.cgi?id=49723.
Eliminated references from task dependency hash to node allocated on stack,
thus eliminated accesses to stale memory. So the node now never freed.
Uncommented assertion which triggered when stale memory accessed.
Removed unneeded ref count increment for stack allocated node.

Differential Revision: https://reviews.llvm.org/D106705

(cherry picked from commit 8e29b4b323b87f3855dc71abf1e3f3d48952a4e4)




More information about the All-commits mailing list