HomePhabricator

[Driver] Flush file in locked area

Authored by sepavloff on Feb 26 2021, 2:44 AM.

Description

[Driver] Flush file in locked area

When writing report file by option -proc-stat-report some part of output
can be written to unlocked file because destructor of raw_fd_ostream
calls flush(). In high thread contention environment it can result in
file operation failure. With this change flush is called explicitly when
file is locked, so call of flush() in the destructor does not cause
write to file.

Details

Committed
sepavloffFeb 26 2021, 4:02 AM
Parents
rG57f8f2375789: [docs][JITLink] Few typo fixes in JITLink design/API doc
Branches
Unknown
Tags
Unknown