Changes between Version 3 and Version 4 of CopyingGarbageCollector
- Timestamp:
- 01/03/10 11:38:55 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CopyingGarbageCollector
v3 v4 72 72 the variables Tospace, Fromspace and top_of_space. Each cell reachable from 73 73 a root is then copied from Fromspace to Tospace. For clarity, a simple 74 recursive algorithm is used, (more elegant iterative algorithms are available). 74 recursive algorithm is used, (more elegant iterative algorithms are available 75 see [wiki:CheneysCopyingCollector]). 75 76 copy(P) scavenges the fields of the cell pointed to by P. Care has to be taken 76 77 when copying data structures to ensure that the topology of the shared data … … 97 98 98 99 extracted from:[[BR]] 99 Garbage Collection: Algo tithms for Automatic Dynamic Memory Management[[BR]]100 Garbage Collection: Algorithms for Automatic Dynamic Memory Management[[BR]] 100 101 by Richard Jones and Rafael Sims[[BR]] 101 102 [http://www.cs.kent.ac.uk/people/staff/rej/gc.html]