#5773: main = forever (putStrLn =<< getLine) continuously saturates a CPU when
compiled
-------------------------------+--------------------------------------------
Reporter: lpsmith | Owner: simonmar
Type: bug | Status: new
Priority: highest | Milestone: 7.4.1
Component: Compiler | Version: 7.4.1-rc1
Keywords: | Os: Linux
Architecture: x86_64 (amd64) | Failure: Runtime performance bug
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
-------------------------------+--------------------------------------------
Changes (by igloo):
* owner: => simonmar
* difficulty: => Unknown
* priority: normal => highest
* milestone: => 7.4.1
Comment:
Thanks for the report.
This is a regression: It works in 7.2 and 7.0.
Simon, do you know what's up?
I skimmed 6b1098511aaabd2c9503ee7be6da1944466f9cb4, and while I don't
think it's relevant, shouldn't the tv_nsec and tv_usec fields in these
hunks have the complete seconds removed?:
{{{
- it.it_value.tv_sec = itimer_interval / 1000;
- it.it_value.tv_nsec = (itimer_interval % 1000) * 1000000;
+ it.it_value.tv_sec = TimeToSeconds(itimer_interval);
+ it.it_value.tv_nsec = TimeToNS(itimer_interval);
}}}
{{{
- it.it_value.tv_sec = itimer_interval / 1000;
- it.it_value.tv_usec = (itimer_interval % 1000) * 1000;
+ it.it_value.tv_sec = TimeToSeconds(itimer_interval);
+ it.it_value.tv_usec = TimeToUS(itimer_interval);
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5773#comment:3>
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