Commit 8fcae518 authored by simonmar's avatar simonmar
Browse files

[project @ 2004-02-27 13:35:16 by simonmar]

hs_exit(): call exitScheduler() *after* finalizeWeakPointersNow(),
because the latter needs to create/run threads.
parent 6e817437
/* -----------------------------------------------------------------------------
* $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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment