summaryrefslogtreecommitdiff
path: root/rts/sm/Compact.c
diff options
context:
space:
mode:
authorÖmer Sinan Ağacan <omer@well-typed.com>2019-02-05 12:45:17 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-03-06 15:53:32 -0500
commit5aab1d9ca927a058135ca9a08c10ea3474cbe251 (patch)
treed958e4ff355b1ca59b23ceee3dc76d2f5cf16d8b /rts/sm/Compact.c
parent2ff77b9894eecf51fa619ed2266ca196e296cd1e (diff)
downloadhaskell-5aab1d9ca927a058135ca9a08c10ea3474cbe251.tar.gz
rts: Unglobalize dead_weak_ptr_list and resurrected_threads
In the concurrent nonmoving collector we will need the ability to call `traverseWeakPtrList` concurrently with minor generation collections. This global state stands in the way of this. However, refactoring it away is straightforward since this list only persists the length of a single GC.
Diffstat (limited to 'rts/sm/Compact.c')
-rw-r--r--rts/sm/Compact.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/sm/Compact.c b/rts/sm/Compact.c
index 004e042069..bd45489da1 100644
--- a/rts/sm/Compact.c
+++ b/rts/sm/Compact.c
@@ -940,7 +940,7 @@ update_bkwd_compact( generation *gen )
}
void
-compact(StgClosure *static_objects)
+compact(StgClosure *static_objects, StgWeak *dead_weak_ptr_list, StgTSO *resurrected_threads)
{
W_ n, g, blocks;
generation *gen;