Process and apparatus for sharing inline caches
OwnerKasper Lund, Lars Bak +2inventors
InventorsKasper Lund, Lars Bak, Jakob Andersen, Steffen Grarup
Life of this patent
Estimating the term…
Abstract
A technique for dynamic dispatch involves adapting a method at a dispatch point to reference a state cache. State of the state cache may be associated with an object type and a method signature. When a method is adapted at the dispatch point to reference a state cache, the reference is to a state cache associated with a state that matches the method signature and the object type of the object dispatched upon. The state cache may be shared among multiple methods with similar associated states to reduce memory requirements.
Claims20
A system, comprising:
- an object, including a first method with an inline reference;
- a state cache configured to invoke a second method, wherein when the first method is invoked the inline reference references the state cache, which invokes the second method.
A system comprising:
- a state cache, associated with an object type;
- a plurality of methods with respective inline references to the state cache, wherein when a calling method of the plurality of methods is invoked, the calling method uses the inline reference to reference the state cache, which invokes a called method associated with the object type.
A process, comprising:
- instantiating an object, wherein the instance of the object includes a first method having a dispatch point to a second method;
- invoking the first method;
- calling the second method at the dispatch point;
- intercepting the method call to the second method;
- determining state;
- adapting the first method to include at the dispatch point an inline reference to a state cache associated with said state.
A process, comprising:
- invoking a first method that includes an inline cache pointing toward a cache state;
- following the inline cache to the cache state;
- invoking a second method from the cache state.
Dependencies are inferred from the claim text.