patch applied (ghc): Remove the optimisation of avoiding scavenging for certain objects

Simon Marlow simonmarhaskell at gmail.com
Tue Jun 17 10:33:34 EDT 2008


Wed Oct 31 07:45:42 PDT 2007  Simon Marlow <simonmar at microsoft.com>
  * Remove the optimisation of avoiding scavenging for certain objects
  
  Some objects don't need to be scavenged, in particular if they have no
  pointers.  This seems like an obvious optimisation, but in fact it
  only accounts for about 1% of objects (in GHC, for example), and the
  extra complication means it probably isn't worth doing.

    M ./rts/Stats.c -10 +3
    M ./rts/Stats.h -1 +1
    M ./rts/sm/Evac.c -97 +4
    M ./rts/sm/GC.c -30 +4
    M ./rts/sm/GC.h -5 +1
    M ./rts/sm/GCUtils.c -35 +3

View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20071031144542-760e2-27ed5710025ab945ce57cbff13c29ea82d19f791.gz



More information about the Cvs-ghc mailing list