aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2021-02-26 17:44:29 +0700
committerSerge Pavlov <sepavloff@gmail.com>2021-02-26 19:02:54 +0700
commit04c3071c16d799a4406c1742f239e8381c00b2b8 (patch)
treeb17f665adf4b37ace2e7d5e3862c1bd68c0da6f0 /clang/lib/Frontend/CompilerInvocation.cpp
parent57f8f2375789ec007e46b7e38ded4c645ad61f51 (diff)
downloadllvm-04c3071c16d799a4406c1742f239e8381c00b2b8.zip
llvm-04c3071c16d799a4406c1742f239e8381c00b2b8.tar.gz
llvm-04c3071c16d799a4406c1742f239e8381c00b2b8.tar.bz2
[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.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions