Breaking read barrier to apply optimizations
Abstract
A garbage collection system that needs to meet real-time requirements utilizes a read barrier that is implemented in an optimizing compiler. The read barrier is implemented with a forwarding pointer positioned in a header of each object. The forwarding pointer points to the object unless the object has been moved. The barrier is optimized by breaking the barrier and applying barrier sinking to sink the read barrier to its point of use and by using sub-expression elimination. A null-check for the read barrier is combined with a null-check required by the real-time application. All objects are located and moved with the collector to minimize variations in mutator utilization.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 25 · Forward citations: 8.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of moving an object in a garbage collection process in connection with an application, the method comprising: using a memory for: defining allocated memory to include both directly allocated memory and indirectly allocated memory; and maintaining a separate immortal heap in the memory for objects that cannot be moved; using a processor for implementing a time-based scheduling of the garbage collection process that interleaves functions of a collector and the application on a fixed schedule, wherein variations in mutator utilization are minimized by allocating certain functions to be p
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗