Avoiding remembered-set maintenance overhead for memory segments known to be in a collection set
Abstract
A garbage collector that employs the train algorithm to manage a generation in a computer system's dynamically allocated heap maintains for each of the generation's cars a respective remembered set that identifies all locations where references to objects in that car have been found by scanning locations identified by the mutator as having been modified. To avoid some of the expense of remembered-set updating, the collector refrains from attempting to add to a remembered set any reference located in a car that will be collected during the next collection increment. Additionally, if no mutator operation will occur before a collection set of one or more cars will be collected, any reference located outside that collection set but referring to an object within the collection set is not recorded in a remembered set but is recorded instead in a scratch-pad list of entries that identify references to collection-set objects that need to be evacuated.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 50 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for updating a remembered set in a garbage collector using a train algorithm configured to divide heap memory into a young generation and an old generation and collects a collection set of a plurality of heap memory segments grouped into a plurality of trains during successive collection increments, the method comprising: prior to performing a remembered set updating operation during a collection increment, using the garbage collector to identify the plurality of heap memory segments in the old generation, wherein the plurality of heap memory segments are part of a collection-set subs
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (3 of 3 total)
References Cited — Backward Prior Art (50)
Non-Patent Literature (5)
- Andew W. Appel, "Simple Generational Garbage Collection and Fast Allocation," Software Practice and Experience, 1989, pp. 171-183, vol. 19, No. 2.
- Appel, Ellis, and Li, "Real-time Concurrent Collection on Stock Multiprocessors," ACM SIGPLAN Notices, 1988.
- Appleby, Karen, "Garbage Collection for Prolog Based on WAM, vol. 31, Issue 6", Communication of the ACM, Jun. 1, 1998, 719-741.
- Arora, et al., "Thread Scheduling for Multiprogrammed Multiprocessors", Proceedings of the 10th Annual ACM Symposium on Parallel Algorithms and Architecture, Jun. 1998.
- Bacon, Attanasio, Lee, Rajan, and Smith, "Java without the Coffee Breaks: A Nonintrusive Multiprocessor Garbage Collector," SIGPLAN Conference on Programming Language Design and Implementation, Snowbird, Utah. Jun 2001.