#4450: Do stack squeezing before expanding stack
---------------------------+------------------------------------------------
Reporter: simonpj | Owner: simonmar
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 6.12.3
Resolution: invalid | Keywords:
Testcase: | Blockedby:
Difficulty: | Os: Unknown/Multiple
Blocking: | Architecture: Unknown/Multiple
Failure: None/Unknown |
---------------------------+------------------------------------------------
Changes (by simonmar):
* status: new => closed
* resolution: => invalid
Comment:
When the stack overflows, we do stack squeezing and then we also expand
the stack, just in case stack squeezing doesn't actually recover any stack
space and to avoid thrashing.
So what happens in this example is that the context switches cause a
little extra squeezing to happen, which means the stack overflows a little
later, and we might end up expanding it less, depending on when the
context switches strike. So, nothing really strange going on - use `+RTS
-V0` to get deterministic results.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4450#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs