Merge branch 'master' into atomics
[ghc.git] / rts / sm / GC.c
index 1b2cb12..8bbdda2 100644 (file)
@@ -924,7 +924,7 @@ static StgWord
 inc_running (void)
 {
     StgWord new;
-    new = atomic_inc(&gc_running_threads);
+    new = atomic_inc(&gc_running_threads, 1);
     ASSERT(new <= n_gc_threads);
     return new;
 }