diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-12-18 10:14:09 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-03-02 17:29:05 -0500 |
commit | 8188adf0f1a0482c269d1eb6350dd91dddc9ed29 (patch) | |
tree | 89d265d5212f9c5dcbf4db0ac0ab42234d1eb164 /testsuite/tests/rts | |
parent | 5d7978df2f23ba125adacbe371188f99debdbb43 (diff) | |
download | haskell-8188adf0f1a0482c269d1eb6350dd91dddc9ed29.tar.gz |
eventlog: Fix various races
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.
Diffstat (limited to 'testsuite/tests/rts')
-rw-r--r-- | testsuite/tests/rts/InitEventLogging.stdout | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/testsuite/tests/rts/InitEventLogging.stdout b/testsuite/tests/rts/InitEventLogging.stdout index ef5ce6f2d3..2729aa1c32 100644 --- a/testsuite/tests/rts/InitEventLogging.stdout +++ b/testsuite/tests/rts/InitEventLogging.stdout @@ -3,5 +3,4 @@ init write write write -write stop |