diff options
author | Douglas Wilson <douglas.wilson@gmail.com> | 2022-06-17 13:54:48 +0100 |
---|---|---|
committer | Douglas Wilson <douglas.wilson@gmail.com> | 2022-08-05 12:50:36 +0100 |
commit | aae55d69d6165a9fe1c15944743d3c36c8880da9 (patch) | |
tree | 3b9e6d3381cc99e82e8aa45e19e42211e100fb5a /testsuite/tests/concurrent/should_run/all.T | |
parent | 6369fc5e6fb242f4416722903f22df5b6cdea789 (diff) | |
download | haskell-wip/21651.tar.gz |
base: Fix races in IOManager (setNumCapabilities,closeFdWith)wip/21651
Fix for #21651
Fixes three bugs:
- writes to eventManager should be atomic. It is accessed concurrently by ioManagerCapabilitiesChanged and closeFdWith.
- The race in closeFdWith described in the ticket.
- A race in getSystemEventManager where it accesses the 'IOArray' in
'eventManager' before 'ioManagerCapabilitiesChanged' has written to
'eventManager', causing an Array Index exception. The fix here is to
'yield' and retry.
Diffstat (limited to 'testsuite/tests/concurrent/should_run/all.T')
-rw-r--r-- | testsuite/tests/concurrent/should_run/all.T | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/testsuite/tests/concurrent/should_run/all.T b/testsuite/tests/concurrent/should_run/all.T index 11cecb3d14..6bfeab4410 100644 --- a/testsuite/tests/concurrent/should_run/all.T +++ b/testsuite/tests/concurrent/should_run/all.T @@ -229,7 +229,6 @@ test('T21651', when(opsys('mingw32'),skip), # uses POSIX pipes when(opsys('darwin'),extra_run_opts('8 12 2000 100')), unless(opsys('darwin'),extra_run_opts('8 12 2000 200')), # darwin runners complain of too many open files - expect_broken('21651'), req_smp ], compile_and_run, ['']) |