Method and apparatus for scheduling and performing garbage collection in a real-time system with guaranteed space bounds
Abstract
A garbage collection system that needs to meet real-time requirements with guaranteed space bounds uses a mostly non-copying hybrid collector that performs defragmentation with limited copying of objects. The garbage collection and the real-time application are interleaved on a time-based schedule. An interval for the interleaving is selected based upon a garbage collector processing rate, a garbage generation rate and a memory allocation rate of the real-time application. An amount of memory for the real-time application and the garbage collection process is selected based upon the maximum excess memory requirement of the garbage collection process and the maximum memory requirement for the application. Defragmentation is only performed when an amount of available memory falls below a predetermined level.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 35 · Forward citations: 14.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of performing a mark and sweep garbage collection process for a real-time application such that it has determinable space bounds, the method comprising: using a memory for: allocating memory space for the application, wherein allocated memory is defined to include directly allocated memory and indirectly allocated memory due to mutation; segmenting the memory space into a number of pages of a predetermined size; and dividing the pages into blocks of a predetermined size; using a mutator for performing an iterative mutation process by: assuring that only non-null, unmarked objects are
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (14 of 14 total)
References Cited — Backward Prior Art (35)
Non-Patent Literature (5)
- Boehm, H., Demers, A. J., and Shenker, S. 1991. Mostly parallel garbage collection. In Proceedings of the ACM SIGPLAN 1991 Conference on Programming Language Design and Implementation (Toronto, Ontario, Canada, Jun. 24-28, 1991). PLDI '91. ACM, New York, NY, 157-164. DOI= http://doi.acm.org/10.1145/
- Nettles, S. and O'Toole, J. 1993. Real-time replication garbage collection. SIGPLAN Not. 28, 6 (Jun. 1993), 217-226. DOI= http://doi.acm.org/10.1145/173262.155111.
- Nilsen, K, Cost-Effective Hardware-Assisted Real-Time Garbage Collection, ACM PLDI Workshop on Language, Compiler, and Tool Support for Real-Time Systems, Jun. 1994.
- Robertz, S. G. and Henriksson, R. 2003. Time-triggered garbage collection: robust and adaptive real-time GC scheduling for embedded systems. SIGPLAN Not. 38, 7 (Jul. 2003), 93-102. DOI= http://doi.acm.org/10.1145/780731.780745.
- Wilson, P.R. 1992. Uniprocessor Garbage Collection Techniques. Available online at http://www.springerlink.com/content/m36636405668rnp8/.