patch applied (ghc): Don't traverse the entire list of threads on every GC (phase 1)

Simon Marlow simonmarhaskell at gmail.com
Tue Jun 17 10:39:46 EDT 2008


Wed Apr 16 16:44:20 PDT 2008  Simon Marlow <simonmarhaskell at gmail.com>
  * Don't traverse the entire list of threads on every GC (phase 1)
  Instead of keeping a single list of all threads, keep one per step
  and only look at the threads belonging to steps that we are
  collecting.

    M ./includes/Storage.h +3
    M ./rts/Sanity.c -6 +10
    M ./rts/Schedule.c -15 +24
    M ./rts/Schedule.h -5
    M ./rts/Threads.c -4 +6
    M ./rts/sm/Compact.c -1 +3
    M ./rts/sm/GC.c -3 +8
    M ./rts/sm/MarkWeak.c -56 +72
    M ./rts/sm/Storage.c +2

View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20080416234420-8214f-871fa6ccc40c154a7051dcd26b3ac97754064688.gz



More information about the Cvs-ghc mailing list