[all-commits] [llvm/llvm-project] c84616: [flang] Avoid potential deadlock in CloseAll()

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue Dec 7 09:43:09 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c84616c3b368f1ca679a08d2ce131f01a9f14ce9
      https://github.com/llvm/llvm-project/commit/c84616c3b368f1ca679a08d2ce131f01a9f14ce9
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2021-12-07 (Tue, 07 Dec 2021)

  Changed paths:
    M flang/runtime/unit-map.cpp

  Log Message:
  -----------
  [flang] Avoid potential deadlock in CloseAll()

When closing all open units, don't hold the unit map lock
over the actual close operations; if one of those aborts,
CloseAll() may be called and then deadlock.

Differential Review: https://reviews.llvm.org/D115184




More information about the All-commits mailing list