summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsof <unknown>1997-10-05 20:32:22 +0000
committersof <unknown>1997-10-05 20:32:22 +0000
commitf64b981a3180a0519b471c971697b799b4202be5 (patch)
tree0cc5ff3314ab10c8ea6c19cabaee3eb15194703a
parentff7984c67c6ec048bd37b92d272aa74dbf19433c (diff)
downloadhaskell-f64b981a3180a0519b471c971697b799b4202be5.tar.gz
[project @ 1997-10-05 20:32:22 by sof]
Added debug code to PerformReschedule
-rw-r--r--ghc/runtime/c-as-asm/HpOverflow.lc5
1 files changed, 5 insertions, 0 deletions
diff --git a/ghc/runtime/c-as-asm/HpOverflow.lc b/ghc/runtime/c-as-asm/HpOverflow.lc
index 45deca6856..d7e5e1f494 100644
--- a/ghc/runtime/c-as-asm/HpOverflow.lc
+++ b/ghc/runtime/c-as-asm/HpOverflow.lc
@@ -290,6 +290,11 @@ PerformReschedule(liveness, always_reenter_node)
{
rtsBool need_to_reschedule;
+#if 0 && defined(DEBUG)
+ fprintf(stderr,"PerfReS:liveness=0x%lx,reenter=%lx,,context_switch=%ld\n",
+ liveness, always_reenter_node, context_switch);
+#endif
+
/* Reset the global NeedToReSchedule --
this is used only to communicate the fact that we should schedule
a new thread rather than the existing one following a fetch.