[PATCH] D109914: [Support] Attempt to fix deadlock in ThreadGroup

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 16 14:31:03 PDT 2021


MaskRay added inline comments.


================
Comment at: llvm/lib/Support/Parallel.cpp:155
+TaskGroup::~TaskGroup() {
+  L.sync();
+  --TaskGroupInstances;
----------------
L is a member of TaskGroup. Hasn't its destructor already run `sync`?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109914/new/

https://reviews.llvm.org/D109914



More information about the llvm-commits mailing list