From 93eab3e91d6f86a5b7519b3a8e01ddc64cfadbec Mon Sep 17 00:00:00 2001
From: simonmar <unknown>
Date: Wed, 8 Aug 2001 13:44:13 +0000
Subject: [PATCH] [project @ 2001-08-08 13:44:13 by simonmar] oops, forgot to
 thread the link and global_link fields of a large TSO.  Fixes a potential
 crash with the compacting collector.

---
 ghc/rts/GCCompact.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ghc/rts/GCCompact.c b/ghc/rts/GCCompact.c
index d8cef76148c..1bd21f3a219 100644
--- a/ghc/rts/GCCompact.c
+++ b/ghc/rts/GCCompact.c
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: GCCompact.c,v 1.6 2001/08/02 15:33:35 ken Exp $
+ * $Id: GCCompact.c,v 1.7 2001/08/08 13:44:13 simonmar Exp $
  *
  * (c) The GHC Team 2001
  *
@@ -306,6 +306,8 @@ update_fwd_large( bdescr *bd )
     {
 	StgTSO *tso = (StgTSO *)p;
 	thread_stack(tso->sp, &(tso->stack[tso->stack_size]));
+	thread((StgPtr)&tso->link);
+	thread((StgPtr)&tso->global_link);
 	continue;
     }
 
-- 
GitLab