Import Debian changes 20180207-1
[hcoop/debian/mlton.git] / doc / guide / localhost / GarbageCollection
CommitLineData
7f918cf1
CE
1<!DOCTYPE html>\r
2<html lang="en">\r
3<head>\r
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\r
5<meta name="generator" content="AsciiDoc 8.6.9">\r
6<title>GarbageCollection</title>\r
7<link rel="stylesheet" href="./asciidoc.css" type="text/css">\r
8<link rel="stylesheet" href="./pygments.css" type="text/css">\r
9\r
10\r
11<script type="text/javascript" src="./asciidoc.js"></script>\r
12<script type="text/javascript">\r
13/*<![CDATA[*/\r
14asciidoc.install();\r
15/*]]>*/\r
16</script>\r
17<link rel="stylesheet" href="./mlton.css" type="text/css">\r
18</head>\r
19<body class="article">\r
20<div id="banner">\r
21<div id="banner-home">\r
22<a href="./Home">MLton 20180207</a>\r
23</div>\r
24</div>\r
25<div id="header">\r
26<h1>GarbageCollection</h1>\r
27</div>\r
28<div id="content">\r
29<div id="preamble">\r
30<div class="sectionbody">\r
31<div class="paragraph"><p>For a good introduction and overview to garbage collection, see\r
32<a href="References#Jones99">Jones99</a>.</p></div>\r
33<div class="paragraph"><p>MLton&#8217;s garbage collector uses copying, mark-compact, and generational\r
34collection, automatically switching between them at run time based on\r
35the amount of live data relative to the amount of RAM. The runtime\r
36system tries to keep the heap within RAM if at all possible.</p></div>\r
37<div class="paragraph"><p>MLton&#8217;s copying collector is a simple, two-space, breadth-first,\r
38Cheney-style collector. The design for the generational and\r
39mark-compact GC is based on <a href="References#Sansom91">Sansom91</a>.</p></div>\r
40</div>\r
41</div>\r
42<div class="sect1">\r
43<h2 id="_design_notes">Design notes</h2>\r
44<div class="sectionbody">\r
45<div class="ulist"><ul>\r
46<li>\r
47<p>\r
48<a href="http://www.mlton.org/pipermail/mlton/2002-May/012420.html">http://www.mlton.org/pipermail/mlton/2002-May/012420.html</a>\r
49</p>\r
50<div class="paragraph"><p>object layout and header word design</p></div>\r
51</li>\r
52</ul></div>\r
53</div>\r
54</div>\r
55<div class="sect1">\r
56<h2 id="_also_see">Also see</h2>\r
57<div class="sectionbody">\r
58<div class="ulist"><ul>\r
59<li>\r
60<p>\r
61<a href="Regions">Regions</a>\r
62</p>\r
63</li>\r
64</ul></div>\r
65</div>\r
66</div>\r
67</div>\r
68<div id="footnotes"><hr></div>\r
69<div id="footer">\r
70<div id="footer-text">\r
71</div>\r
72<div id="footer-badges">\r
73</div>\r
74</div>\r
75</body>\r
76</html>\r