X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FRtsStartup.c;h=438304ade0c21c25281e99345b8599cbe5b2824e;hb=dbef766ce79e37a74468a07a93b15ba1f06fe8f8;hp=69de6722943823ddbeb3a571d1ab261e9b0af5b6;hpb=5680ea4b2035198981739e24ad04cd0e0d133172;p=ghc-hetmet.git diff --git a/ghc/rts/RtsStartup.c b/ghc/rts/RtsStartup.c index 69de672..438304a 100644 --- a/ghc/rts/RtsStartup.c +++ b/ghc/rts/RtsStartup.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: RtsStartup.c,v 1.56 2001/11/22 14:25:12 simonmar Exp $ + * $Id: RtsStartup.c,v 1.57 2001/11/26 16:54:22 simonmar Exp $ * * (c) The GHC Team, 1998-2000 * @@ -277,26 +277,6 @@ shutdownHaskell(void) /* start timing the shutdown */ stat_startExit(); -#ifdef PROFILING - // @LDV profiling - // - // Note: - // We do not need to perform a major garbage collection because all the - // closures created since the last census will not affect the profiling - // statistics anyhow. - // - // Note: - // We ignore any object created afterwards. - // finalizeWeakPointersNow() may corrupt the heap (because it executes - // rts_evalIO(), which adds an initial evaluation stack again). - // Thus, we call LdvCensusKillAll() here, and prohibit LDV profiling - // afterwards. - // Acutally, it is pointless to call LdvCensusKillAll() any later because - // no object created later will be taken into account for profiling. - if (RtsFlags.ProfFlags.doHeapProfile == HEAP_BY_LDV) - LdvCensusKillAll(); -#endif - #if !defined(GRAN) /* Finalize any remaining weak pointers */ finalizeWeakPointersNow();