[GHC] #5773: main = forever (putStrLn =<< getLine) continuously saturates a CPU when compiled
GHC
cvs-ghc at haskell.org
Sat Jan 14 18:36:43 CET 2012
#5773: main = forever (putStrLn =<< getLine) continuously saturates a CPU when
compiled
-------------------------------------+--------------------------------------
Reporter: lpsmith | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.4.1-rc1 | Keywords:
Os: Linux | Architecture: x86_64 (amd64)
Failure: Runtime performance bug | Testcase:
Blockedby: | Blocking:
Related: |
-------------------------------------+--------------------------------------
Comment(by lpsmith):
The problem appears to be in {{{getLine}}}; you can remove {{{forever}}}
and still consume 100% of a CPU (until you type something in and the
program exits of course.)
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5773#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list