summaryrefslogtreecommitdiff
path: root/rts/Capability.c
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-11-01 13:10:06 -0500
committerBen Gamari <ben@smart-cactus.org>2020-11-01 13:10:06 -0500
commita9f75fe23b47358bda585e9af3e2b44da7817c37 (patch)
tree0b35ea42d07499ea1ce97a04fd952ca5a6070571 /rts/Capability.c
parent55c375d0bc1c7b9f5476d2b074f5da3539386c93 (diff)
parentaf474f6246036d4f904949af96c5c74fb8d1dbe0 (diff)
downloadhaskell-a9f75fe23b47358bda585e9af3e2b44da7817c37.tar.gz
Merge branch 'wip/tsan/event-mgr' into wip/tsan/all
Diffstat (limited to 'rts/Capability.c')
-rw-r--r--rts/Capability.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/Capability.c b/rts/Capability.c
index c0a06f21c9..eda4f8e691 100644
--- a/rts/Capability.c
+++ b/rts/Capability.c
@@ -1347,7 +1347,7 @@ void
setIOManagerControlFd(uint32_t cap_no USED_IF_THREADS, int fd USED_IF_THREADS) {
#if defined(THREADED_RTS)
if (cap_no < n_capabilities) {
- capabilities[cap_no]->io_manager_control_wr_fd = fd;
+ RELAXED_STORE(&capabilities[cap_no]->io_manager_control_wr_fd, fd);
} else {
errorBelch("warning: setIOManagerControlFd called with illegal capability number.");
}