Combining write-barriers within an inner loop with fixed step
Abstract
The present invention provides a technique for reducing the number of write barriers executed in mutator code without compromising garbage collector performance. To that end, when mutator instructions located within an inner-most nested loop (“inner loop”) modify references stored in one or more arrays, a compiler defers emitting write barriers corresponding to the reference modifications until after the inner loop is emitted. By deferring emission of write barriers, the mutator may execute a write barrier for each card spanned by the array instead of executing a typically larger number of write barriers corresponding to each reference modification made in an array. Thus, the invention enables the compiler to reduce the amount of write-barrier overhead performed by the mutator, consequently enabling the mutator to execute faster and more efficiently.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 27 · Forward citations: 8.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer comprising a processor for compiling source code that specifies operation of a mutator, which includes a loop including at least one reference-modifying instruction, into object code for execution by a computer system, which includes a memory of which at least a portion is logically partitioned into one or more cards, wherein the processor executes a set of instructions to perform: (A) determining whether execution of the loop included in the mutator results in modifications, by the at least one reference-modifying instruction included in the loop, of at least one reference within e
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (8 of 8 total)
References Cited — Backward Prior Art (27)
Non-Patent Literature (5)
- Andrew W. Appel, Simple Generational Garbage Collection and Fast Allocation, Mar. 1988, revised Sep. 1988, Department of Computer Science, Princeton University, Princeton, New Jersey.
- Antony L. Hosking, et al., A Comparative Performance Evaluation of Write Barrier Implementations, pp. 92-107, Object Systems Labratory, Department of Computer Science, University of Massachusetts, Amherst, Massachusetts.
- Antony L. Hosking, et al., Protection Traps and Alternatives for Memory Management of an Object-Oriented Language, pp. 1-14, Object Systems Labratory, Department of Computer Science, University of Massachusetts, Amherst, Massachusetts.
- Antony L. Hosking, Remembered Sets Can Also Play Cards, pp. 1-8, Object Systems Laboratory, Department of Computer Science, University of Massachusetts, Amherst, Massachusetts.
- Appel, et al., "Real-Time Concurrent Collection on Stock Multiprocessors", ACM SIGPLAN Notices, 1988.