This is an archive of the discontinued LLVM Phabricator instance.

[flang][runtime] Fix deadlock in error recovery
ClosedPublic

Authored by klausler on Jun 3 2022, 4:10 PM.

Details

Summary

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.

Diff Detail

Event Timeline

klausler created this revision.Jun 3 2022, 4:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 3 2022, 4:10 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Jun 3 2022, 4:10 PM
vdonaldson accepted this revision.Jun 3 2022, 5:27 PM
This revision is now accepted and ready to land.Jun 3 2022, 5:27 PM
This revision was automatically updated to reflect the committed changes.