Enable shortcutting of stack squeezing
authorSimon Marlow <simonmar@microsoft.com>
Fri, 10 Mar 2006 20:44:49 +0000 (20:44 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Fri, 10 Mar 2006 20:44:49 +0000 (20:44 +0000)
Not sure why it was disabled, probably by accident.

ghc/rts/GC.c

index 1e40065..4235d3e 100644 (file)
@@ -4690,8 +4690,8 @@ end:
     // Should we squeeze or not?  Arbitrary heuristic: we squeeze if
     // the number of words we have to shift down is less than the
     // number of stack words we squeeze away by doing so.
     // Should we squeeze or not?  Arbitrary heuristic: we squeeze if
     // the number of words we have to shift down is less than the
     // number of stack words we squeeze away by doing so.
-    if (1 /*RtsFlags.GcFlags.squeezeUpdFrames == rtsTrue &&
-           weight < words_to_squeeze*/) {
+    if (RtsFlags.GcFlags.squeezeUpdFrames == rtsTrue &&
+       weight < words_to_squeeze) {
        stackSqueeze(tso, (StgPtr)frame);
     }
 }
        stackSqueeze(tso, (StgPtr)frame);
     }
 }