[all-commits] [llvm/llvm-project] edbcc1: [OpenMP] libomp: properly initialize buckets in __...

Joseph Schuchart via All-commits all-commits at lists.llvm.org
Fri Jan 22 09:31:05 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: edbcc17b7a0b5a4f20ec55983e172d0120ccbca9
      https://github.com/llvm/llvm-project/commit/edbcc17b7a0b5a4f20ec55983e172d0120ccbca9
  Author: Joseph Schuchart <schuchart at icl.utk.edu>
  Date:   2021-01-22 (Fri, 22 Jan 2021)

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

  Log Message:
  -----------
  [OpenMP] libomp: properly initialize buckets in __kmp_dephash_extend

The buckets are initialized in __kmp_dephash_create but when they are extended
the memory is allocated but not NULL'd, potentially leaving some buckets
uninitialized after all entries have been copied into the new allocation.
This commit makes sure the buckets are properly initialized with NULL before
copying the entries.

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




More information about the All-commits mailing list