Repository : ssh://darcs.haskell.org//srv/darcs/nofib

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/bc7468fa61f9113a0fc38b4faa1372d282f0e947

>---------------------------------------------------------------

commit bc7468fa61f9113a0fc38b4faa1372d282f0e947
Author: Simon Marlow <[email protected]>
Date:   Thu Jun 30 15:33:04 2011 +0100

    comments

>---------------------------------------------------------------

 smp/callback001/Main.hs |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/smp/callback001/Main.hs b/smp/callback001/Main.hs
index 0abdbaf..8408631 100644
--- a/smp/callback001/Main.hs
+++ b/smp/callback001/Main.hs
@@ -1,6 +1,14 @@
 {-# OPTIONS_GHC -fffi #-}
 -- This benchmark is also ffi014 in the test suite.
 
+-- This program behaves unpredictably with the non-threaded RTS,
+-- because depending on when the context switches happen it might end
+-- up building a deep stack of callbacks.  When this happens, the run
+-- queue gets full of threads that have finished but cannot exit
+-- because they do not belong to the topmost call to schedule(), and
+-- the scheduler repeatedly traverses the run queue full of these
+-- zombie threads.
+
 module Main where
 
 import Control.Concurrent



_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to