projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add prototypes for exitHashTable()
[ghc-hetmet.git]
/
rts
/
Storage.c
diff --git
a/rts/Storage.c
b/rts/Storage.c
index
3594f71
..
a657ce8
100644
(file)
--- a/
rts/Storage.c
+++ b/
rts/Storage.c
@@
-279,6
+279,10
@@
freeStorage (void)
stgFree(generations[g].steps);
stgFree(generations);
freeAllMBlocks();
stgFree(generations[g].steps);
stgFree(generations);
freeAllMBlocks();
+#if defined(THREADED_RTS)
+ closeMutex(&sm_mutex);
+ closeMutex(&atomic_modify_mutvar_mutex);
+#endif
}
/* -----------------------------------------------------------------------------
}
/* -----------------------------------------------------------------------------
@@
-611,7
+615,7
@@
allocate( nat n )
}
lnat
}
lnat
-allocated_bytes( void )
+allocatedBytes( void )
{
lnat allocated;
{
lnat allocated;
@@
-870,7
+874,7
@@
calcAllocated( void )
nat allocated;
bdescr *bd;
nat allocated;
bdescr *bd;
- allocated = allocated_bytes();
+ allocated = allocatedBytes();
allocated += countNurseryBlocks() * BLOCK_SIZE_W;
{
allocated += countNurseryBlocks() * BLOCK_SIZE_W;
{