Abstract
Garbage collection can be done in vector mode on supercomputers like the CRAY-2 and the Cyber 205. Both copying collection and mark-and-sweep can be expressed as breadth-first searches in which the “queue” can be processed in parallel. We have designed a copying garbage collector whose inner loop works entirely in vector mode. We give performance measurements of the algorithm as implemented for Lisp CONS cells on the Cyber 205. Vector-mode garbage collection performs up to nine times faster than scalar-mode collection-a worthwhile improvement.
Similar content being viewed by others
References
Anderson, W., Galway, W., Kessler, R., Melenk, H., and Neun, W. 1987. The implementation and optimization of Portable Standard Lisp for the Cray. In Proc., 20th Annual Hawaii International Conf. on Science Systems (Jan.).
Appel, A.W. 1987. Garbage collection can be faster than stack allocation. Information Processing Letters, 25, 4: 275–279.
Appel, A.W., and MacQueen, D.B. 1987. A standard ML compiler. In Functional Programming Languages and Computer Architecture (LNCS 274), Springer Verlag, pp. 301–324.
Cheney, C.J. 1970. A nonrecursive list compacting algorithm. Communications of the ACM, 13, 11: 677–678.
Control Data Corporation. 1986. CDC Cyber 200 Vector C. Pub. no. 60000018.
Eckstein, D.M. 1977. Parallel processing using depth-first and breadth-first search. Ph.D. thesis, Univ. of Iowa.
Stephens, J. 1989 (Feb.). Personal communication. Cray Research.
Ungar, D. 1984. Generation scavenging: A non-disruptive high performance storage reclamation algorithm. SIGPLAN Notices, 19, 5: 157–167. (Proc., ACM SIGSOFT/SIGPLAN Software Engineering Symposium on Practical Software Development Environments).
Author information
Authors and Affiliations
Additional information
Supported in part by NSF Grants DCR-8603543 and CCR-8806121, and by a Digital Equipment Corp. Faculty Incentive Grant.
Supported by the NSF Research Experiences for Undergraduates program.
Rights and permissions
About this article
Cite this article
Appel, A.W., Bendiksen, A. Vectorized garbage collection. J Supercomput 3, 151–160 (1989). https://doi.org/10.1007/BF00127826
Issue Date:
DOI: https://doi.org/10.1007/BF00127826