summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/profile/Windows/Inputs/instrprof-multiprocess.c
Commit message (Collapse)AuthorAgeFilesLines
* [profile] Fix file contention causing dropped counts on Windows under ↵Hans Wennborg2019-11-271-0/+89
-fprofile-generate See PR43425: https://bugs.llvm.org/show_bug.cgi?id=43425 When writing profile data on Windows we were opening profile file with exclusive read/write access. In case we are trying to write to the file from multiple processes simultaneously, subsequent calls to CreateFileA would return INVALID_HANDLE_VALUE. To fix this, I changed to open without exclusive access and then take a lock. Patch by Michael Holman! Differential revision: https://reviews.llvm.org/D70330
OpenPOWER on IntegriCloud