Forgot an initMutex(); fixes profthreaded failures on Windows
[ghc.git] / rts / Profiling.c
index ac2708e..7fb7f9e 100644 (file)
@@ -152,6 +152,10 @@ initProfiling1 (void)
             capabilities[n].r.rCCCS = CCS_SYSTEM;
         }
     }
+
+#ifdef THREADED_RTS
+    initMutex(&ccs_mutex);
+#endif
 }
 
 void