Method and apparatus for improving the performance of garbage collection using stack trace cache
Abstract
An arrangement is provided for using a stack trace cache when performing root set enumeration in a stack of a thread during garbage collection. During the first root set enumeration in the stack, full stack unwinding may be performed and a stack trace cache may be created to cache stack trace information relating to stack frames. Subsequent sessions of root set enumeration in the stack may access and copy parts or the entire cached stack trace information instead of performing full stack unwinding.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 14.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A computer implemented method for automatically collecting garbage objects, comprising: performing root set enumeration in a stack of a thread using a stack trace cache; obtaining a root set by combining references obtained from root set enumeration for all threads; tracing live objects that are reachable from references in the root set; and reclaiming storage space occupied by objects other than the live objects.
- Claim 2Depends on #1
The method of claim 1 , wherein the root set comprises currently live references in stacks, registers, and other storage areas for all threads.
- Claim 3Depends on #1
The method of claim 1 , wherein performing root set enumeration in a stack of a thread using a stack trace cache comprises: determining if a stack frame is cached in the stack trace cache; detecting a portion of stack trace information that has not changed since the last stack enumerati
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗