summaryrefslogtreecommitdiff
path: root/rts/Linker.c
diff options
context:
space:
mode:
authorLemmih <lemmih@gmail.com>2006-04-26 11:11:43 +0000
committerLemmih <lemmih@gmail.com>2006-04-26 11:11:43 +0000
commit25f1d5c51840bee2deeeb6613451cf3cd80536ea (patch)
treef190e0bebe7bef07b80e6f69e6855a74893f78ba /rts/Linker.c
parentaaa34891cb9cd87b803aef8dfc5386545b7a0784 (diff)
downloadhaskell-25f1d5c51840bee2deeeb6613451cf3cd80536ea.tar.gz
Don't init root pointers if they aren't gonna be used.
Diffstat (limited to 'rts/Linker.c')
-rw-r--r--rts/Linker.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/rts/Linker.c b/rts/Linker.c
index 0db2c5e38d..e1be5e6eb9 100644
--- a/rts/Linker.c
+++ b/rts/Linker.c
@@ -856,7 +856,7 @@ static void
addRootObject(void *addr)
{
StgWord rt;
-
+ initRootPtrTable();
if (root_ptr_free == NULL) {
enlargeRootPtrTable();
}
@@ -954,7 +954,6 @@ initLinker( void )
linker_init_done = 1;
}
- initRootPtrTable();
stablehash = allocStrHashTable();
symhash = allocStrHashTable();