[project @ 2005-07-11 15:57:38 by simonmar]
authorsimonmar <unknown>
Mon, 11 Jul 2005 15:57:39 +0000 (15:57 +0000)
committersimonmar <unknown>
Mon, 11 Jul 2005 15:57:39 +0000 (15:57 +0000)
commitc77201452748a299caa3c0254bd7a76ba0c64bee
treea041eb5e8080dd543b2ac2803774de0bb10d8496
parent86024676b79116949cb2ad4d7843f3b4c1fba088
[project @ 2005-07-11 15:57:38 by simonmar]
Avoid calling threadPaused() on exit from STG land if we're just
switching to the interpreter, and conversely call threadPaused() in
the interpreter if we're returing to the scheduler for anything other
than switching to STG.

This will probably fix the recent slowdown in GHCi (ioref001 test, for
example).  It was broken when we moved the threadPaused() call into
STG from the scheduler, so it only affects the HEAD.
ghc/rts/HeapStackCheck.cmm
ghc/rts/Interpreter.c
ghc/rts/StgStartup.cmm