Skip to content
  • Ben Gamari's avatar
    2628d61f
    rts/eventlog: Ensure that all capability buffers are flushed · 2628d61f
    Ben Gamari authored
    The previous approach performed the flush in yieldCapability. However,
    as pointed out in #19435, this is wrong as it idle capabilities will not
    go through this codepath.
    
    The fix is simple: undo the optimisation, flushing in `flushEventLog` by
    calling `flushAllCapsEventsBufs` after acquiring all capabilities.
    
    Fixes #19435.
    2628d61f
    rts/eventlog: Ensure that all capability buffers are flushed
    Ben Gamari authored
    The previous approach performed the flush in yieldCapability. However,
    as pointed out in #19435, this is wrong as it idle capabilities will not
    go through this codepath.
    
    The fix is simple: undo the optimisation, flushing in `flushEventLog` by
    calling `flushAllCapsEventsBufs` after acquiring all capabilities.
    
    Fixes #19435.
Loading