projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
63d391a
)
[project @ 1998-08-14 10:49:32 by sof]
author
sof
<unknown>
Fri, 14 Aug 1998 10:49:32 +0000
(10:49 +0000)
committer
sof
<unknown>
Fri, 14 Aug 1998 10:49:32 +0000
(10:49 +0000)
handle_tick_serial: don't tick while reporting a cc profile
ghc/runtime/profiling/Timer.lc
patch
|
blob
|
history
diff --git
a/ghc/runtime/profiling/Timer.lc
b/ghc/runtime/profiling/Timer.lc
index
3a0a2fb
..
10f9529
100644
(file)
--- a/
ghc/runtime/profiling/Timer.lc
+++ b/
ghc/runtime/profiling/Timer.lc
@@
-48,6
+48,14
@@
handle_tick_serial(STG_NO_ARGS)
abort();
#endif
+#if 0
+ /* Experimental - don't tick if we're in the middle
+ of reporting a cc_profile. Untested.
+ */
+ if (interval_expired)
+ return;
+#endif
+
if (++current_ticks >= interval_ticks && CCC != STATIC_CC_REF(CC_GC)) {
#if defined(PROFILING)
interval_expired = 1; /* stop to process interval */