Method and apparatus for lazy instantiation of objects in a virtual machine
Abstract
One embodiment of the present invention provides a system for creating objects in a virtual machine. The system operates by receiving a request to create an object within an object-oriented programming system. Upon receiving the request, if a meta-class instance associated with the object does not already exist, the system creates a structure to represent the meta-class instance in a data space that is not subject to garbage collection. If an explicit instruction to create the meta-class instance is detected, the system creates the meta-class instance within a garbage-collected data space.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 5 · Forward citations: 14.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method for creating objects in a virtual machine, comprising; receiving a request to create an object within an object-oriented programming system; creating a surrogate meta-class instance associated with the object if the meta-class instance does not already exist, wherein the surrogate meta-class instance is created outside of the system heap in a data space that is not subject to garbage collection; and upon detecting an explicit instruction to create the meta-class instance, creating the meta-class instance within the system heap; whereby system heap space is not unnecessarily consumed b
- Claim 2Depends on #1
The method of claim 1 , wherein the meta-class instance is created using an int
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 (5)
Non-Patent Literature (5)
- Doyon et al., Verifying Object Initialization in the Java Bytecode Language; Symposium on Applied Computing, Proceedings of the 2000 ACM symposium on Applied computing 2000, Mar. 2000, Como, Italy, pp. 821-830.*
- Madany et al., Organizing and Typing Persistent Objects within an Object Oriented Framework, System Sciences, 1992. Proceedings of the Twenty-Fifth Hawaii International Conference, pp. 800-809, vol. 1.*
- Phillip Bishop and Nigel Warren, Java Tip 67: Lazy Instantiation: Balancing Performance and Resource Usage, JavaWorld web site, www.javaworld.com, Jan. 1, 1999.*
- The GNU Compiler for the Java Programming Language (http://gcc.gnu.org/java).*
- Wiebe de Jong, "Static Initializers and Lazy Instantiation," www.developer.com/java/other/article.php/626421, May 17, 2000.