[all-commits] [llvm/llvm-project] d67c91: [OpenMP] Insert missing variable update inside loop

Jonathan Peyton via All-commits all-commits at lists.llvm.org
Tue May 23 07:19:41 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d67c91b5e728d94376873c04ffac3ba6d29b95b8
      https://github.com/llvm/llvm-project/commit/d67c91b5e728d94376873c04ffac3ba6d29b95b8
  Author: Jonathan Peyton <jonathan.l.peyton at intel.com>
  Date:   2023-05-23 (Tue, 23 May 2023)

  Changed paths:
    M openmp/runtime/src/kmp_tasking.cpp
    A openmp/runtime/test/tasking/omp_task_priority3.c

  Log Message:
  -----------
  [OpenMP] Insert missing variable update inside loop

While loop within task priority code did not have necessary update of
variable which could lead to hangs if two threads collided when both
attempted to execute the compare_and_exchange.

Fixes: https://github.com/llvm/llvm-project/issues/62867
Differential Revision: https://reviews.llvm.org/D151138




More information about the All-commits mailing list