[all-commits] [llvm/llvm-project] 56f36f: [OpenMP][OMPT] Fix memory leak when using GCC comp...

Jonathan Peyton via All-commits all-commits at lists.llvm.org
Thu Aug 11 13:26:42 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 56f36f85e029d6947d07d7d174801104785149a7
      https://github.com/llvm/llvm-project/commit/56f36f85e029d6947d07d7d174801104785149a7
  Author: Jonathan Peyton <jonathan.l.peyton at intel.com>
  Date:   2022-08-11 (Thu, 11 Aug 2022)

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

  Log Message:
  -----------
  [OpenMP][OMPT] Fix memory leak when using GCC compatibility code

Serialized parallels allocate lightweight task teams on the heap
but never free them in the corresponding join. This patch adds a wrapper
around the allocation (if ompt enabled) and also adds the corresponding
free in the join call.

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




More information about the All-commits mailing list