Optimized memory management for class metadata
Abstract
A method for managing class metadata in a garbage collected system, including (i) allocating a metaspace to a class loader of a mutator using a memory heap, where the metaspace is configured to store the class metadata generated by the class loader, (ii) storing, in the metaspace, class metadata items associated with classes defined by the class loader, where the class metadata items and the class loader are coterminous, and where all of the class metadata items are identified by a garbage collector as live if any of the class metadata items is reachable by the mutator, (iii) updating a linkset graph during resolution of symbolic links to sumarize cross-metaspace references, and (iv) reclaiming, by the garbage collector based on a pre-determined algorithm using the metaspace, memory locations unreachable by the mutator, where all memory locations allocated to the class metadata items are reclaimed together as a group.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 3 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for managing class metadata in a garbage collected system, comprising: allocating a first metaspace to a first class loader of a mutator executing on a processor using a memory heap, wherein the first metaspace is configured to store a first plurality of class metadata items generated by the first class loader; storing, in the first metaspace, a first plurality of class metadata items associated with a first plurality of classes defined by the first class loader, wherein the first plurality of class metadata items and the first class loader are coterminous, and wherein all of the firs
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (3 of 3 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 11,113,190 B2 | Mutable type builder | 2021 | 0 |
| US 9,250,936 B2 | Enhanced array class | 2016 | 1 |
| US 9,244,708 B2 | Enhanced java array | 2016 | 1 |
References Cited — Backward Prior Art (3)
Non-Patent Literature (3)
- Etienne M. Gagnon and Laurie J. Hendren. Sable VM: A Research Framework for the Efficient Execution of Java Bytecode. Sable Technical Report No. 2000-3, Nov. 1, 2000.
- Martin T. Vechev and Peter D. Petrov. Class Unloading with a Concurrent Garbage Colletor in an Embedded Java VM. pp. 99-108, Jun. 23, 2003.
- Thomas Schatzl, Laurent Daynès, Hanspeter Mössenböck, "Optimized Memory Management for Class Metadata in a JVN", Aug. 24, 2011, PPPJ '11 Proceedings of the 9th International Conference on Principles and Practice of Programming in Java, pp. 151-160.