summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-12-19 18:03:06 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-01-12 07:49:04 -0500
commitdb11f3586085901e89705f69aff472e027c0748f (patch)
treeb9d7c5644e6ad328e8a737870f7dc51fe2207946
parentb3be0d185b6e597fa517859430cf6d54df04ca46 (diff)
downloadhaskell-db11f3586085901e89705f69aff472e027c0748f.tar.gz
Revert "rts: Drop racy assertion"
The logic here was inverted. Reverting the commit to avoid confusion when examining the commit history. This reverts commit b3eacd64fb36724ed6c5d2d24a81211a161abef1.
-rw-r--r--rts/sm/Storage.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/rts/sm/Storage.c b/rts/sm/Storage.c
index 5ba971bbcf..60021f6b2a 100644
--- a/rts/sm/Storage.c
+++ b/rts/sm/Storage.c
@@ -1404,10 +1404,7 @@ allocatePinned (Capability *cap, W_ n /*words*/, W_ alignment /*bytes*/, W_ alig
void
dirty_MUT_VAR(StgRegTable *reg, StgMutVar *mvar, StgClosure *old)
{
-#if defined(THREADED_RTS)
- // This doesn't hold in the threaded RTS as we may race with another thread.
ASSERT(RELAXED_LOAD(&mvar->header.info) == &stg_MUT_VAR_CLEAN_info);
-#endif
Capability *cap = regTableToCapability(reg);
// No barrier required here as no other heap object fields are read. See