X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FRtsStartup.c;h=5255386de36b186a6d3cf3b46d8ad5bc09ae82dc;hb=8fcae518e33613c93b55ab5f165954727cf4aa30;hp=edbf88a9c63accf99826fb0c24a576568f8a8b5c;hpb=6e817437ecf7820f86564f461d8a12bf432a42fb;p=ghc-hetmet.git diff --git a/ghc/rts/RtsStartup.c b/ghc/rts/RtsStartup.c index edbf88a..5255386 100644 --- a/ghc/rts/RtsStartup.c +++ b/ghc/rts/RtsStartup.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: RtsStartup.c,v 1.78 2003/09/26 12:12:35 panne Exp $ + * $Id: RtsStartup.c,v 1.79 2004/02/27 13:35:16 simonmar Exp $ * * (c) The GHC Team, 1998-2002 * @@ -324,14 +324,14 @@ hs_exit(void) /* start timing the shutdown */ stat_startExit(); - /* stop all running tasks */ - exitScheduler(); - #if !defined(GRAN) /* Finalize any remaining weak pointers */ finalizeWeakPointersNow(); #endif + /* stop all running tasks */ + exitScheduler(); + #if defined(GRAN) /* end_gr_simulation prints global stats if requested -- HWL */ if (!RtsFlags.GranFlags.GranSimStats.Suppressed)