Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
10836 commits behind the upstream repository.
user avatar
Ben Gamari authored
Previously the eventlog infrastructure had a couple of races that could
pop up when using the startEventLog/endEventLog interfaces. In
particular, stopping and then later restarting logging could result in
data preceding the eventlog header, breaking the integrity of the
stream.

To fix this we rework the invariants regarding the eventlog and
generally tighten up the concurrency control surrounding starting and
stopping of logging.

We also fix an unrelated bug, wherein log events from disabled
capabilities could end up never flushed.
8188adf0
History