1. 03 Jun, 2008 1 commit
  2. 17 Apr, 2008 1 commit
  3. 16 Apr, 2008 13 commits
  4. 11 Jan, 2008 1 commit
  5. 21 Nov, 2007 1 commit
  6. 31 Oct, 2007 5 commits
    • Simon Marlow's avatar
    • Simon Marlow's avatar
      Remove the optimisation of avoiding scavenging for certain objects · cacd714c
      Simon Marlow authored
      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.
    • Simon Marlow's avatar
      GC refactoring: change evac_gen to evac_step · c3572443
      Simon Marlow authored
      By establishing an ordering on step pointers, we can simplify the test
        (stp->gen_no < evac_gen)
        (stp < evac_step)
      which is common in evacuate().
    • Simon Marlow's avatar
      Initial parallel GC support · f2ca6dee
      Simon Marlow authored
      eg. use +RTS -g2 -RTS for 2 threads.  Only major GCs are parallelised,
      minor GCs are still sequential. Don't use more threads than you
      have CPUs.
      It works most of the time, although you won't see much speedup yet.
      Tuning and more work on stability still required.
    • Simon Marlow's avatar
      Refactoring of the GC in preparation for parallel GC · d5bd3e82
      Simon Marlow authored
      This patch localises the state of the GC into a gc_thread structure,
      and reorganises the inner loop of the GC to scavenge one block at a
      time from global work lists in each "step".  The gc_thread structure
      has a "workspace" for each step, in which it collects evacuated
      objects until it has a full block to push out to the step's global
      list.  Details of the algorithm will be on the wiki in due course.
      At the moment, THREADED_RTS does not compile, but the single-threaded
      GC works (and is 10-20% slower than before).
  7. 11 Oct, 2007 1 commit
    • Simon Marlow's avatar
      Add a proper write barrier for MVars · 1ed01a87
      Simon Marlow authored
      Previously MVars were always on the mutable list of the old
      generation, which meant every MVar was visited during every minor GC.
      With lots of MVars hanging around, this gets expensive.  We addressed
      this problem for MUT_VARs (aka IORefs) a while ago, the solution is to
      use a traditional GC write-barrier when the object is modified.  This
      patch does the same thing for MVars.
      TVars are still done the old way, they could probably benefit from the
      same treatment too.
  8. 26 Oct, 2006 1 commit
  9. 24 Oct, 2006 1 commit
    • Simon Marlow's avatar
      Split GC.c, and move storage manager into sm/ directory · ab0e778c
      Simon Marlow authored
      In preparation for parallel GC, split up the monolithic GC.c file into
      smaller parts.  Also in this patch (and difficult to separate,
        - Don't include Stable.h in Rts.h, instead just include it where
        - consistently use STATIC_INLINE in source files, and INLINE_HEADER
          in header files.  STATIC_INLINE is now turned off when DEBUG is on,
          to make debugging easier.
        - The GC no longer takes the get_roots function as an argument.
          We weren't making use of this generalisation.