Garbage collection extensibility via managed code
Abstract
A garbage collector includes a core, and extension handlers to support collection of objects of a designated managed class. The handler, which may be implemented in managed code, receives notification of garbage collection phases, and receives control from the core when the core encounters an object of the designated class. The handler can then thread together discovered objects of the designated class, walk a list of objects and detect whether any are unreachable, and/or provide an executor for the designated class. The core notifies handlers about progress in tracing strong pointers, tracing weak pointers, pointer update, pinning, weak pointer forwarding, and untraced pointer relocation. A pointer can be marked as untraced, so the core ignores it during pointer tracing phases. If the core encounters an object which has a weak pointer field, the core can pass control to a handler's tracing method. The core may perform generational garbage collection.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 13 · Forward citations: 6.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A process of extending garbage collection functionality in a computer system, the process comprising the steps of: designating a managed code class for specialized handling by a garbage collector core during garbage collection; obtaining a garbage collector extension handler which is configured to accept notification of internal garbage collection phases; registering the garbage collector extension handler to receive control from the garbage collector core when the garbage collector core encounters an object of the designated managed code class during garbage collection; and marking a class re
- Claim 2Depends on #1
The process of claim 1 , wherein the obtaining step obtains a garbage collector ex
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (6 of 6 total)
References Cited — Backward Prior Art (13)
Non-Patent Literature (5)
- "NSGarbageCollector Class Reference", Retrieved at << http://developer.apple.com/mad/library/...class/NSGarbageCollector—class.pdf >>, Oct. 15, 2008, pp. 14.
- "NSGarbageCollector Class Reference", Retrieved at >, Oct. 15, 2008, pp. 14.
- "The Truth About Garbage Collection", Retrieved at >> http://java.sun.com/docs/books/performance/1st-edition/html/JPAppGC.fm.html >>, retrieved date: Jul. 5, 2010, pp. 8.
- Pawlan, Monica, "Reference Objects and Garbage Collection", Retrieved at << http://www.pawlan.com/monica/articles/refobjsl/ >>, Aug. 1998, p. 1.
- Pawlan, Monica, "Reference Objects and Garbage Collection", Retrieved at >, Aug. 1998, p. 1.