Debian Codegraph @

doc/guide/src/GarbageCollection.adoc

raw
1 = GarbageCollection
2
3 For a good introduction and overview to garbage collection, see
4 <<References#Jones99,Jones99>>.
5
6 MLton's garbage collector uses copying, mark-compact, and generational
7 collection, automatically switching between them at run time based on
8 the amount of live data relative to the amount of RAM. The runtime
9 system tries to keep the heap within RAM if at all possible.
10
11 MLton's copying collector is a simple, two-space, breadth-first,
12 Cheney-style collector. The design for the generational and
13 mark-compact GC is based on <<References#Sansom91,Sansom91>>.
14
15 == Design notes
16
17 * http://www.mlton.org/pipermail/mlton/2002-May/012420.html
18 +
19 object layout and header word design
20
21 == Also see
22
23 * <<Regions#>>