[all-commits] [llvm/llvm-project] 62ece9: [flang][runtime] Add a critical section for LookUp...

SiHuaN via All-commits all-commits at lists.llvm.org
Tue Dec 5 19:53:30 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 62ece9ce997a3ca077a931eff07bc2cfef978289
      https://github.com/llvm/llvm-project/commit/62ece9ce997a3ca077a931eff07bc2cfef978289
  Author: SiHuaN <liyongtai at iscas.ac.cn>
  Date:   2023-12-06 (Wed, 06 Dec 2023)

  Changed paths:
    M flang/runtime/unit.cpp

  Log Message:
  -----------
  [flang][runtime] Add a critical section for LookUpOrCreateAnonymous. (#74468)

In parallel regions `LookUpOrCreateAnonymous` may return an anonymous
unit that has not yet been opened, which may cause a runtime error.
This commit ensures that the returned anonymous unit has been opened.
For details see:
https://github.com/llvm/llvm-project/issues/68856#issuecomment-1788632511

Fixes https://github.com/llvm/llvm-project/issues/68856




More information about the All-commits mailing list