[project @ 2005-04-28 15:44:16 by simonmar]
authorsimonmar <unknown>
Thu, 28 Apr 2005 15:44:16 +0000 (15:44 +0000)
committersimonmar <unknown>
Thu, 28 Apr 2005 15:44:16 +0000 (15:44 +0000)
calcAllocated: fix small mis-calculation in the SMP case

ghc/rts/Storage.c

index 84232e7..f466a58 100644 (file)
@@ -747,7 +747,7 @@ calcAllocated( void )
 #ifdef SMP
   for (i = 0; i < n_nurseries; i++) {
       Capability *cap;
-      for ( bd = capabilities[i].r.rCurrentNursery; 
+      for ( bd = capabilities[i].r.rCurrentNursery->link; 
            bd != NULL; bd = bd->link ) {
          allocated -= BLOCK_SIZE_W;
       }