Content deleted Content added
m fix formatting |
Patar knight (talk | contribs) Adding short description: "Computer software algorithm" |
||
(11 intermediate revisions by 8 users not shown) | |||
Line 1:
{{Short description|Computer software algorithm}}
{{Use dmy dates|date=September 2021}}
{{more footnotes|date=April 2014}}
'''Cheney's algorithm''', first described in a 1970 [[Association for Computing Machinery|ACM]] paper by C.J. Cheney, is a [[stop and copy]] method of [[tracing garbage collection]] in computer software systems. In this scheme, the [[Memory management#
Cheney's algorithm reclaims items as follows:
Line 15 ⟶ 16:
The forwarding pointer (sometimes called a "broken heart") is used only during the garbage collection process; when a reference to an object already in to-space (thus having a forwarding pointer in from-space) is found, the reference can be updated quickly simply by updating its pointer to match the forwarding pointer.
Because the strategy is to exhaust all live references, and then all references in referenced objects, this is known as a ''[[breadth-first]]'' list copying garbage collection scheme.
== Semispace ==
Line 91 ⟶ 38:
|doi=10.1145/362790.362798
|s2cid=36538112
|doi-access=free
}}
* {{cite journal
Line 100 ⟶ 48:
|doi=10.1145/363269.363280
|s2cid=36616954
|doi-access=free
}}
* {{cite journal
Line 108 ⟶ 57:
|url=http://courses.cs.washington.edu/courses/csep521/07wi/prj/rick.pdf
}}
== External links ==
* {{youtube|1uLzSXWWfDg|Understanding Android Runtime (Google I/O'19)}} - Android uses a variant of the semi-space garbage collector.
{{Memory management}}
|