Mechanism for class data sharing using extension and application class-loaders
First Claim
1. A method of reducing load time of an application comprising:
- prior to execution of an application at a computing device;
storing, in a memory included in the computing device, metadata, in an archive, the metadata corresponding to a class loading operation used to load a class required by the application, wherein the metadata identifies a type of theclass loading operation and wherein different types of class loading operations perform different security checks as a part of loading classes; and
during execution of the application at the computing device;
based on a request comprising an indication for the class loading operation to load the class, determining, based on the metadata, whether the class is stored in the archive; and
when the class is stored in the archive;
loading, by a particular class loading operation of a particular type, the class from the archive;
checking that the particular type of the class loading operation matches the type of the class loading operation in the metadata; and
wherein the metadata further includes a classpath location of the class loaded by the class loading operation and wherein determining, based on themetadata, whether the class is stored in the archive comprises verifying that the classpath location is valid.
1 Assignment
0 Petitions
Accused Products
Abstract
The present disclosure involves systems, methods, and/or computer-readable mediums for reducing load time of an application. The systems, methods, and/or computer-readable mediums store metadata in an archive prior to execution of an application. The metadata corresponds to a type of class loading operation used to load a class required by the application, where different types of class loading operations perform different security checks as a part of loading classes. During execution of the application, based on the metadata and based in part on a request for the class loading operation to load the class, it is determined whether the class is stored in the archive. When the class is stored in the archive, a particular type of class loading operation loads the class from the archive and the system checks that the particular type of the class loading operation matches the type of the class loading operation in the metadata.
-
Citations
16 Claims
-
1. A method of reducing load time of an application comprising:
-
prior to execution of an application at a computing device; storing, in a memory included in the computing device, metadata, in an archive, the metadata corresponding to a class loading operation used to load a class required by the application, wherein the metadata identifies a type of the class loading operation and wherein different types of class loading operations perform different security checks as a part of loading classes; and during execution of the application at the computing device; based on a request comprising an indication for the class loading operation to load the class, determining, based on the metadata, whether the class is stored in the archive; and when the class is stored in the archive; loading, by a particular class loading operation of a particular type, the class from the archive; checking that the particular type of the class loading operation matches the type of the class loading operation in the metadata; and wherein the metadata further includes a classpath location of the class loaded by the class loading operation and wherein determining, based on the metadata, whether the class is stored in the archive comprises verifying that the classpath location is valid. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A non-transitory computer readable medium encoded with instructions for reducing load time of an application, the instructions, executable by a processor, comprising:
-
prior to execution of an application by the processor; storing, in a memory included in the computing device, metadata in an archive, the metadata corresponding to a class loading operation used to load a class required by the application, wherein the metadata identifies a type of the class loading operation and wherein different types of class loading operations perform different security checks as a part of loading classes; and during execution of the application by the processor; based on a request comprising an indication for the class loading operation to load the class, determining, based on the metadata, whether the class is stored in the archive; and when the class is stored in the archive; loading, by a particular class loading operation of a particular type, the class from the archive; checking that the particular type of the class loading operation matches the type of the class loading operation in the metadata; and wherein the metadata further includes a classpath location of the class loaded by the class loading operation and wherein determining, based on the metadata, whether the class is stored in the archive comprises verifying that the classpath location is valid. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
Specification