Garbage collector with eager read barrier
Abstract
A garbage collection system that needs to meet real-time requirements uses an eager read barrier that performs a forwarding operation as soon as a quantity is loaded. The barrier maintains a to-space invariant by including a forwarding pointer in the header of objects to be moved or accessed that normally points to the object itself. However, if the object has been moved, the forwarding pointer points to the new object location. The eager read barrier maintains the registers and stack cells such that the registers and stack cells always point into to-space. Barrier-sinking and common sub-expression elimination are used to minimize the overhead associated with the read barrier.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 46 · Forward citations: 5.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer program product comprising a computer readable storage medium having computer program code embodied therein for: allocating memory space for an application as part of a garbage collection process using a read barrier; segmenting the memory space into a number of pages each of a predetermined size; dividing the pages into blocks of a plurality of predetermined sizes; identifying objects to be allocated; allocating memory for the objects into the blocks of a size class that is the smallest size class that accommodates the object; marking some of the objects as dead; removing the objec
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗