[all-commits] [llvm/llvm-project] 236ac6: [OpenMP] Add memory barrier to solve data race

Bryan Chan via All-commits all-commits at lists.llvm.org
Fri Mar 27 13:32:53 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 236ac68fa5b173e54b181e0a03216dfd8fd4f95e
      https://github.com/llvm/llvm-project/commit/236ac68fa5b173e54b181e0a03216dfd8fd4f95e
  Author: Henry Kao <henry.kao at huawei.com>
  Date:   2020-03-27 (Fri, 27 Mar 2020)

  Changed paths:
    M openmp/runtime/src/kmp_lock.cpp

  Log Message:
  -----------
  [OpenMP] Add memory barrier to solve data race

Data race occurs when acquiring lock for critical section
triggering assertion failure. Added barrier to ensure
all memory is commited before checking assertion.

Reviewed By: Hahnfeld

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




More information about the All-commits mailing list