Tue Nov 18 06:24:42 PST 2008 Simon Marlow <[EMAIL PROTECTED]> * Add optional eager black-holing, with new flag -feager-blackholing Eager blackholing can improve parallel performance by reducing the chances that two threads perform the same computation. However, it has a cost: one extra memory write per thunk entry. To get the best results, any code which may be executed in parallel should be compiled with eager blackholing turned on. But since there's a cost for sequential code, we make it optional and turn it on for the parallel package only. It might be a good idea to compile applications (or modules) with parallel code in with -feager-blackholing. ToDo: document -feager-blackholing.
M ./compiler/cmm/CLabel.hs -5 M ./compiler/cmm/CmmExpr.hs +1 M ./compiler/cmm/PprC.hs +1 M ./compiler/cmm/PprCmm.hs +1 M ./compiler/codeGen/CgClosure.lhs -13 +17 M ./compiler/codeGen/CgUtils.hs +1 M ./compiler/codeGen/ClosureInfo.lhs -11 +1 M ./compiler/main/DynFlags.hs +2 M ./compiler/nativeGen/AsmCodeGen.lhs +4 M ./includes/ClosureTypes.h -30 +28 M ./includes/Regs.h -2 +4 M ./includes/RtsConfig.h -18 M ./includes/StgMiscClosures.h -8 +2 M ./includes/mkDerivedConstants.c +1 M ./rts/Capability.c +1 M ./rts/ClosureFlags.c -4 +1 M ./rts/FrontPanel.c -2 +1 M ./rts/LdvProfile.c -2 M ./rts/Linker.c +1 M ./rts/Printer.c -8 M ./rts/ProfHeap.c -5 +1 M ./rts/RetainerProfile.c -6 M ./rts/Sanity.c -4 M ./rts/StgMiscClosures.cmm -5 +24 M ./rts/ThreadPaused.c -4 +1 M ./rts/sm/Compact.c -2 M ./rts/sm/Evac.c -4 M ./rts/sm/Scav.c -6 M ./utils/genapply/GenApply.hs -2 View patch online: http://darcs.haskell.org/ghc/_darcs/patches/20081118142442-12142-c8d5bd3fb9bb55782db4e5be8631f283a249336c.gz _______________________________________________ Cvs-ghc mailing list Cvs-ghc@haskell.org http://www.haskell.org/mailman/listinfo/cvs-ghc