[all-commits] [llvm/llvm-project] 4f4199: [flang] Fix race condition in runtime

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu May 6 11:14:45 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4f41994c13741b8ffe0c0cc9f6474eabc1293d89
      https://github.com/llvm/llvm-project/commit/4f41994c13741b8ffe0c0cc9f6474eabc1293d89
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2021-05-06 (Thu, 06 May 2021)

  Changed paths:
    M flang/runtime/io-error.cpp
    M flang/runtime/terminator.cpp
    M flang/runtime/unit.cpp

  Log Message:
  -----------
  [flang] Fix race condition in runtime

The code that initializes the default units 5 & 6 had
a race condition that would allow threads access to the
unit map before it had been populated.

Also add some missing calls to va_end() that will never
be called (they're in program abort situations) but might
elicit warnings if absent.

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




More information about the All-commits mailing list