Correct spelling mistake: GhcState1HcOpts -> GhcStage1HcOpts
[ghc-hetmet.git] / ghc / rts / Storage.c
index ef58c1f..974be45 100644 (file)
@@ -132,6 +132,7 @@ initStorage( void )
   
 #if defined(THREADED_RTS)
   initMutex(&sm_mutex);
+  initMutex(&atomic_modify_mutvar_mutex);
 #endif
 
   ACQUIRE_SM_LOCK;
@@ -267,6 +268,12 @@ exitStorage (void)
     stat_exit(calcAllocated());
 }
 
+void
+freeStorage (void)
+{
+    freeAllMBlocks();
+}
+
 /* -----------------------------------------------------------------------------
    CAF management.