diff options
author | Ben Gamari <ben@smart-cactus.org> | 2023-04-28 08:55:02 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2023-05-16 08:07:57 -0400 |
commit | c8f74d5f6e9874424c1e55f586ff44568308a94c (patch) | |
tree | 2ff63bdd0dd80b4f7eed738a46ba129b06b65152 /rts/Threads.c | |
parent | 1e6861dd8612d8f71cc4635c4f73f84f316a6c7e (diff) | |
download | haskell-wip/clear-block-info.tar.gz |
rts: Clear block_info when unblockingwip/clear-block-info
Otherwise we may end up with dangling pointers which may complicate
debugging. Also, introduce more strict checking of block_info in
checkTSO.
Diffstat (limited to 'rts/Threads.c')
-rw-r--r-- | rts/Threads.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rts/Threads.c b/rts/Threads.c index b36b4ddb81..5a4660f718 100644 --- a/rts/Threads.c +++ b/rts/Threads.c @@ -334,6 +334,7 @@ unblock: // just run the thread now, if the BH is not really available, // we'll block again. tso->why_blocked = NotBlocked; + tso->block_info.closure = (StgClosure *)END_TSO_QUEUE; appendToRunQueue(cap,tso); // We used to set the context switch flag here, which would |