add prototypes for exitHashTable()
[ghc-hetmet.git] / rts / Storage.c
index 3594f71..a657ce8 100644 (file)
@@ -279,6 +279,10 @@ freeStorage (void)
       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
-allocated_bytes( void )
+allocatedBytes( void )
 {
     lnat allocated;
 
@@ -870,7 +874,7 @@ calcAllocated( void )
   nat allocated;
   bdescr *bd;
 
-  allocated = allocated_bytes();
+  allocated = allocatedBytes();
   allocated += countNurseryBlocks() * BLOCK_SIZE_W;
   
   {