#2797: ghci stack overflows when ghc does not
---------------------------------+------------------------------------------
    Reporter:  TristanAllwood    |        Owner:  igloo                  
        Type:  merge             |       Status:  new                    
    Priority:  normal            |    Milestone:  6.12.2                 
   Component:  GHCi              |      Version:  6.11                   
    Keywords:                    |   Difficulty:  Unknown                
          Os:  Unknown/Multiple  |     Testcase:                         
Architecture:  Unknown/Multiple  |      Failure:  Runtime performance bug
---------------------------------+------------------------------------------
Changes (by simonmar):

  * owner:  => igloo
  * type:  bug => merge


Comment:

 Fixed (sort of):

 {{{
 Thu Jan 28 12:44:54 GMT 2010  Simon Marlow <marlo...@gmail.com>
   * tweak the totally-bogus arbitrary stack-squeezing heuristic to fix
 #2797
   In #2797, a program that ran in constant stack space when compiled
   needed linear stack space when interpreted.  It turned out to be
   nothing more than stack-squeezing not happening.  We have a heuristic
   to avoid stack-squeezing when it would be too expensive (shuffling a
   large amount of memory to save a few words), but in some cases even
   expensive stack-squeezing is necessary to avoid linear stack usage.
   One day we should implement stack chunks, which would make this less
   expensive.
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2797#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to