tiny tweak to the stack squeezing heuristic (fixes cg060)
authorSimon Marlow <marlowsd@gmail.com>
Wed, 4 Jun 2008 09:12:44 +0000 (09:12 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 4 Jun 2008 09:12:44 +0000 (09:12 +0000)
rts/ThreadPaused.c

index 3aa66ed..c32a75b 100644 (file)
@@ -310,7 +310,7 @@ end:
     // the number of words we have to shift down is less than the
     // number of stack words we squeeze away by doing so.
     if (RtsFlags.GcFlags.squeezeUpdFrames == rtsTrue &&
-       ((weight <= 4 && words_to_squeeze > 0) || weight < words_to_squeeze)) {
+       ((weight <= 5 && words_to_squeeze > 0) || weight < words_to_squeeze)) {
        stackSqueeze(tso, (StgPtr)frame);
     }
 }