Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Source project has a limited visibility.
  • Ben Gamari's avatar
    8188adf0
    eventlog: Fix various races · 8188adf0
    Ben Gamari authored and Marge Bot's avatar Marge Bot committed
    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
    eventlog: Fix various races
    Ben Gamari authored and Marge Bot's avatar Marge Bot committed
    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.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.