Replicating code to eliminate a level of indirection during execution of an object oriented computer program
AssigneeSun Microsystems, Inc.
InventorsJames Michael O'Connor, Marc Tremblay
Life of this patent
Estimating the term…
Loading patent…
AssigneeSun Microsystems, Inc.
InventorsJames Michael O'Connor, Marc Tremblay
Estimating the term…
A method and apparatus for accelerating the execution of an object oriented computer program having a plurality of objects. In one embodiment, each of the objects includes an object header and object data which are stored in a memory. Moreover, each of the objects is associated with a corresponding set of methods (or functions). A typical object oriented program only maintains one copy of a method which is accessed by more than one object. However, in the present invention, each method is copied and stored in a memory, such that each object has a dedicated set of methods stored in memory. For example, if a first object and a second object require access to the same method, then a first copy of this method is provided for the first object, and a second copy of this method is provided for the second object. Providing each object with a dedicated set of methods minimizes the levels of indirection required to access the methods, and thereby accelerates the execution of instructions which access the objects.
A method of executing an object oriented computer program having a plurality of objects, the method comprising:
A method of processing an object oriented computer program, the method comprising:
An apparatus for executing an object oriented computer program having a plurality of objects, the apparatus comprising:
An apparatus for processing an object oriented computer program, the apparatus comprising:
Dependencies are inferred from the claim text.