summaryrefslogtreecommitdiff
path: root/rts/Threads.c
diff options
context:
space:
mode:
authorÖmer Sinan Ağacan <omeragacan@gmail.com>2018-09-21 10:08:18 +0300
committerÖmer Sinan Ağacan <omeragacan@gmail.com>2018-09-21 10:08:18 +0300
commit29f1c556dd563f563c3c0522823fa66f171ff023 (patch)
treef305f4f0b398bd8b48e544566299f77bbdcb3233 /rts/Threads.c
parent66c17293648fd03a04aabfd807b3c8336e8f843a (diff)
downloadhaskell-29f1c556dd563f563c3c0522823fa66f171ff023.tar.gz
Remove redundant slop zeroing
OVERWRITE_INFO already does zero slopping by calling OVERWRITING_CLOSURE
Diffstat (limited to 'rts/Threads.c')
-rw-r--r--rts/Threads.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/rts/Threads.c b/rts/Threads.c
index 78c5b6cc84..977635322d 100644
--- a/rts/Threads.c
+++ b/rts/Threads.c
@@ -371,12 +371,6 @@ wakeBlockingQueue(Capability *cap, StgBlockingQueue *bq)
// overwrite the BQ with an indirection so it will be
// collected at the next GC.
-#if defined(DEBUG) && !defined(THREADED_RTS)
- // XXX FILL_SLOP, but not if THREADED_RTS because in that case
- // another thread might be looking at this BLOCKING_QUEUE and
- // checking the owner field at the same time.
- bq->bh = 0; bq->queue = 0; bq->owner = 0;
-#endif
OVERWRITE_INFO(bq, &stg_IND_info);
}