Container-based language runtime loading an isolated method
AssigneeOracle International Corporation
InventorsMichael Haupt, John Rose, Brian Goetz
Life of this patent
Estimating the term…
Abstract
Embodiments include a code loader method for loading attributes corresponding to an isolated method by a container-based language runtime. The attributes are received by the container-based language runtime without any specified container for storage of the isolated method attributes. The attributes received as parameters of code loader method and include instructions, live objects, and parameter types corresponding to the isolated method. The container-based language runtime selects a first-order container for storing the attributes of the isolated method.
Claims20
One or more non-transitory machine-readable media storing instructions which, when executed by one or more processors, cause:
- identifying, by a container-based language runtime, a first instruction in a first module to load a first set of instructions as a first method;
- responsive to the first instruction in the first module:
- determining, by the container-based language runtime, that a first container is associated with methods loaded using the first instruction from the first module;
- selecting, by the container-based language runtime, the first container for being associated with the first method;
- loading, by the container-based language runtime, the first set of instructions corresponding to the first method as a component of the first container;
- identifying, by the container-based language runtime, a second instruction to execute the first method;
- responsive to the second instruction:
- executing, by the contain-based language runtime, the first set of instructions corresponding to the first method and stored in association with the first container;
- identifying, by the container-based language runtime, the first instruction in a second module to load a second set of instructions as a second method;
- responsive to the first instruction in the second module:
- determining, by the container-based language runtime, that a second container is associated with methods loaded using the first instruction from the second module;
- selecting, by the container-based language runtime, the second container for being associated with the second method;
- loading, by the container-based language runtime, the second set of instructions corresponding to the second method as a component of the second container;
- identifying, by the container-based language runtime, a third instruction to execute the second method;
- responsive to the third instruction:
- executing, by the contain-based language runtime, the second set of instructions corresponding to the second method and stored in association with the second container.
A system, comprising:
- one or more devices, each including at least one hardware processor;
- and
- the system being configured to perform operations comprising:
- identifying, by a container-based language runtime, a first instruction in a first module to load a first set of instructions as a first method;
- responsive to the first instruction in the first module:
- determining, by the container-based language runtime, that a first container is associated with methods loaded using the first instruction from the first module;
- selecting, by the container-based language runtime, the first container for being associated with the first method;
- loading, by the container-based language runtime, the first set of instructions corresponding to the first method as a component of the first container;
- identifying, by the container-based language runtime, a second instruction to execute the first method;
- responsive to the second instruction:
- executing, by the contain-based language runtime, the first set of instructions corresponding to the first method and stored in association with the first container;
- identifying, by the container-based language runtime, the first instruction in a second module to load a second set of instructions as a second method;
- responsive to the first instruction in the second module:
- determining, by the container-based language runtime, that a second container is associated with methods loaded using the first instruction from the second module;
- selecting, by the container-based language runtime, the second container for being associated with the second method;
- loading, by the container-based language runtime, the second set of instructions corresponding to the second method as a component of the second container;
- identifying, by the container-based language runtime, a third instruction to execute the second method;
- responsive to the third instruction:
- executing, by the contain-based language runtime, the second set of instructions corresponding to the second method and stored in association with the second container.
A method, comprising:
- identifying, by a container-based language runtime, a first instruction in a first module to load a first set of instructions as a first method;
- responsive to the first instruction in the first module:
- determining, by the container-based language runtime, that a first container is associated with methods loaded using the first instruction from the first module;
- selecting, by the container-based language runtime, the first container for being associated with the first method;
- loading, by the container-based language runtime, the first set of instructions corresponding to the first method as a component of the first container;
- identifying, by the container-based language runtime, a second instruction to execute the first method;
- responsive to the second instruction:
- executing, by the contain-based language runtime, the first set of instructions corresponding to the first method and stored in association with the first container;
- identifying, by the container-based language runtime, the first instruction in a second module to load a second set of instructions as a second method;
- responsive to the first instruction in the second module:
- determining, by the container-based language runtime, that a second container is associated with methods loaded using the first instruction from the second module;
- selecting, by the container-based language runtime, the second container for being associated with the second method;
- loading, by the container-based language runtime, the second set of instructions corresponding to the second method as a component of the second container;
- identifying, by the container-based language runtime, a third instruction to execute the second method;
- responsive to the third instruction:
- executing, by the contain-based language runtime, the second set of instructions corresponding to the second method and stored in association with the second container;
- wherein the method is performed by one or more devices, each including at least one hardware processor.
Dependencies are inferred from the claim text.