Method and apparatus for performing concurrent garbage collection
Abstract
The present invention provides a system that facilitates performing concurrent garbage collection. During operation, the system executes a first mutator thread. While executing the first mutator thread, the system performs a garbage-collection operation using a garbage-collector thread. Performing the garbage-collection operation involves: discovering a live object in a from-space, which is being collected; creating a copy of the live object to a to-space, where live objects are copied to during garbage collection; and replacing the live object in the from-space with a forwarding pointer which points to a location of the copy of the live object in the to-space.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 10 · Forward citations: 10.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method for performing concurrent garbage collection, the method comprising: executing a first mutator thread; while executing the first mutator thread, performing a garbage-collection operation using a garbage-collector thread, wherein performing the garbage-collection operation involves: discovering a first live object in a from-space, which is being collected; marking cache lines comprising the first live object in the from-space as “forwarded,” which prevents any mutator threads from touching the cache lines; creating a copy of the first live object in a to-space, where live objects are c
- Claim 2Depends on #1
The method of claim 1 , wherein performing the gar
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (10 of 10 total)
References Cited — Backward Prior Art (10)
Non-Patent Literature (4)
- Antony L. Hosking, "Portable, Mostly-Concurrent, Mostly-Copying Garbage Collection for Multi-Processors", ACM ISMM, Jun. 10-11, 2006, pp. 40-51.
- Filip Pizlo et al., "Hierarchical Real-time Garbage Collection", ACM LCTES, Jun. 13-15, 2007, pp. 123-133.
- Greg Wright, Matthew L. Seidel & Mario Wolczko, "An Object-aware Memory Architecture", SMLI TR-2005-143, Feb. 2005, pp. 1-31.
- Lorenz Huelsbergen & James R. Larus, "A Concurrent Copying Garbage Collector for Languages that Distinguish (Im)mutable Data", 4th ACM PPOPP, Jun. 1993, pp. 73-82.