cvs commit: fptools/ghc/compiler/codeGen CgStackery.lhs
Simon Marlow
simonmar@glass.cse.ogi.edu
Wed, 12 Sep 2001 06:01:02 -0700
simonmar 2001/09/12 06:01:02 PDT
Modified files: (Branch: ghc-5-02-branch)
ghc/compiler/codeGen CgStackery.lhs
Log:
Bugfix: there was an implicit assumption that the list of slots passed
to freeStackSlots was already sorted, whereas in fact this wasn't the
case for at least one call. Now we explicitly sort the list in
freeStackSlots, removing the hidden assumption.
The symptoms of this bug include crashes (perhaps the "AsmCodeGen"
crash), and a tendency to grow the stack a lot when let-no-escapes are
involved (because the bug caused fragmentation of the stack free list,
so we weren't re-using free slots properly).
Revision Changes Path
1.17.2.1 +3 -2 fptools/ghc/compiler/codeGen/CgStackery.lhs