System and method for supporting distributed class loading in a virtual machine (VM)
AssigneeOracle International Corporation
InventorGajanan Kulkarni
Life of this patent
Estimating the term…
Abstract
A system and method can support distributed class loading in a computing environment, such as a virtual machine. A class loader can break a classpath into one or more subsets of a classpath, wherein the classpath is associated with a class. Furthermore, the class loader can use one or more threads to locate the class based on said one or more subsets of the classpath. Then, the class loader can load the class after a said thread locates the class.
Claims20
A method for supporting distributed class loading in a computing environment, comprising:
- tokenizing, via a class loader, a classpath into a plurality of subsets of the classpath, each of the subsets of the classpath being a token of the classpath, wherein the classpath is associated with a class;
- passing, by the class loader, each of the plurality of tokens of the classpath to a different thread of a plurality of threads;
- using the plurality of threads to locate the class based on the plurality of tokens of the classpath;
- locating, by at least a thread of the plurality of threads, the class;
- and loading, via the class loader, the class from the at least a thread of the plurality of threads.
A system for supporting distributed class loading in a computing environment, comprising:
- one or more microprocessors;
- and a processor, running on the one or more microprocessors, wherein the processor operates to perform steps comprising:
- tokenizing, via a class loader, a classpath into a plurality of subsets of the classpath, each of the subsets of the classpath being a token of the classpath, wherein the classpath is associated with a class;
- passing, by the class loader, each of the plurality of tokens of the classpath to a different thread of a plurality of threads;
- using the plurality of threads to locate the class based on the plurality of tokens of the classpath;
- locating, by at least a thread of the plurality of threads, the class;
- and loading, via the class loader, the class from the at least a thread of the plurality of threads.
A non-transitory machine readable storage medium having instructions stored thereon for supporting distributed class loading in a computing environment that when executed cause a system to perform steps comprising:
- tokenizing, via a class loader, a classpath into a plurality of subsets of the classpath, each of the subsets of the classpath being a token of the classpath, wherein the classpath is associated with a class;
- passing, by the class loader, each of the plurality of tokens of the classpath to a different thread of a plurality of threads, wherein each of the plurality of threads are created by the classloader;
- using the plurality of threads to locate the class based on the plurality of tokens of the classpath;
- locating, by at least a thread of the plurality of threads, the class;
- and loading, via the class loader, the class from the at least a thread of the plurality of threads.
Dependencies are inferred from the claim text.