Method and apparatus for storing long-lived objects in a virtual machine
First Claim
1. A method for storing long-lived objects defined within an object-oriented programming system in a virtual machine for executing platform-independent code, wherein long-lived objects are created during initialization of the virtual machine, the method comprising;
- allocating a storage area reserved for long-lived objects, wherein the storage area is not subject to garbage collection;
receiving a request to create an object;
determining if the object is identified in a table of long-lived objects;
if the object is identified as a long-lived object, creating the long-lived object, and placing the long-lived object in the storage area;
allowing a garbage collector to reclaim unused storage in the storage area one time just prior to closing the storage area; and
closing the storage area to new objects when initialization of the virtual machine is complete.
2 Assignments
0 Petitions
Accused Products
Abstract
One embodiment of the present mechanism provides a system for storing long-lived objects defined within an object-oriented programming system. These long-lived objects are created in a virtual machine used for executing platform-independent code and are ordinarily created during initialization of the virtual machine. The system works by allocating a storage area reserved for long-lived objects that is not subject to garbage collection. After the storage area is allocated, the system receives requests to create an object. The system then determines if the object is a long-lived object by referring to a table of long-lived objects. If the object is a long-lived object, it is created and placed in the reserved storage area.
16 Citations
18 Claims
-
1. A method for storing long-lived objects defined within an object-oriented programming system in a virtual machine for executing platform-independent code, wherein long-lived objects are created during initialization of the virtual machine, the method comprising;
-
allocating a storage area reserved for long-lived objects, wherein the storage area is not subject to garbage collection;
receiving a request to create an object;
determining if the object is identified in a table of long-lived objects;
if the object is identified as a long-lived object, creating the long-lived object, and placing the long-lived object in the storage area;
allowing a garbage collector to reclaim unused storage in the storage area one time just prior to closing the storage area; and
closing the storage area to new objects when initialization of the virtual machine is complete. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A computer-readable storage medium storing instructions that when executed by a computer cause the computer to perform a method for storing long-lived objects defined within an object-oriented programming system in a virtual machine for executing platform-independent code, wherein long-lived objects are created during initialization of the virtual machine, the method comprising;
-
allocating a storage area reserved for long-lived objects, wherein the storage area is not subject to garbage collection;
receiving a request to create an object;
determining if the object is identified in a table of long-lived objects;
if the object is identified as a long-lived object, creating the long-lived object, and placing the long-lived object in the storage area;
allowing a garbage collector to reclaim unused storage in the storage area one time just prior to closing the storage area; and
closing the storage area to new objects when initialization of the virtual machine is complete. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. An apparatus that facilitates storing long-lived objects defined within an object-oriented programming system in a virtual machine for executing platform-independent code, wherein long-lived objects are created during initialization of the virtual machine, the apparatus comprising;
-
an allocating mechanism that is configured to allocate a storage area reserved for long-lived objects, wherein the storage area is not subject to garbage collection;
a receiving mechanism that is configured to receive a request to create an object;
a determining mechanism that is configured to determine if the object is identified in a table of long-lived objects;
a creating mechanism that is configured to create a long-lived object;
a placing mechanism that is configured to place the long-lived object in the storage area;
a garbage collection triggering mechanism that is configured to trigger a garbage collector to reclaim unused storage in the storage area one time just prior to closing the storage area; and
a closing mechanism that is configured to close the storage area to new objects when initialization of the virtual machine is complete. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification