Description[turbofan] Add a mutex for recording compilation statistics
There was previously a race between different phases recording their
first entry -- and thus, their insert order -- on the main and
concurrent-compilation thread. This would later manifest as a segfault
when creating the sorted array of phases for --turbo-stats (as two
phases would have the same insert order and so there would be a gap in
the array).
Committed: https://crrev.com/1df36a80de9d9d4a8967b976799fb9a7f5f384b3
Cr-Commit-Position: refs/heads/master@{#41669}
Patch Set 1 #
Messages
Total messages: 15 (10 generated)
|