stgi-1.1: Educational implementation of the STG (Spineless Tagless G-machine)

Safe HaskellNone
LanguageHaskell2010

Stg.Machine.GarbageCollection.TwoSpaceCopying

Description

Two space stop-and-copy garbage collector.

  • Compacting: memory is moved to a new location
  • Tracing

Synopsis

Documentation

twoSpaceCopying :: GarbageCollectionAlgorithm Source #

Move all used addresses by moving them to a safe location, and delete the leftovers.