[commit: ghc] master: Closures must be zeroed even without LDV-profiling. Partially fixes #7747 (1ce57ec)

Edward Z. Yang ezyang at MIT.EDU
Thu Mar 7 23:32:14 CET 2013


Repository : http://darcs.haskell.org/ghc.git/

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/1ce57ec9d544beaee79aed50c4e12de144e4482f

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

commit 1ce57ec9d544beaee79aed50c4e12de144e4482f
Author: Edward Z. Yang <ezyang at mit.edu>
Date:   Thu Mar 7 14:28:54 2013 -0800

    Closures must be zeroed even without LDV-profiling. Partially fixes #7747
    
    Signed-off-by: Edward Z. Yang <ezyang at mit.edu>

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

 includes/rts/storage/ClosureMacros.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/includes/rts/storage/ClosureMacros.h b/includes/rts/storage/ClosureMacros.h
index 73725e1..4d93994 100644
--- a/includes/rts/storage/ClosureMacros.h
+++ b/includes/rts/storage/ClosureMacros.h
@@ -489,10 +489,6 @@ EXTERN_INLINE void overwritingClosure (StgClosure *p)
 {
     nat size, i;
 
-#if defined(PROFILING)
-    if (era <= 0) return;
-#endif
-
     size = closure_sizeW(p);
 
     // For LDV profiling, we need to record the closure as dead





More information about the ghc-commits mailing list