[all-commits] [llvm/llvm-project] 11f928: [flang][runtime] Fix deadlock in error recovery

Peter Klausler via All-commits all-commits at lists.llvm.org
Sat Jun 4 11:02:32 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 11f928af9bfaefc0965a43f5ad6d480ded3de4a5
      https://github.com/llvm/llvm-project/commit/11f928af9bfaefc0965a43f5ad6d480ded3de4a5
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-06-04 (Sat, 04 Jun 2022)

  Changed paths:
    M flang/runtime/io-api.cpp
    M flang/runtime/io-stmt.cpp
    M flang/runtime/io-stmt.h

  Log Message:
  -----------
  [flang][runtime] Fix deadlock in error recovery

When an external I/O statement is in a recoverable error
state before any data transfers take place (for example,
an unformatted transfer with ERR=/IOSTAT=/IOMSG= attempted on
a formatted unit), ensure that the unit's mutex is still
released at the end of the statement.

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




More information about the All-commits mailing list