Methods and apparatus for dynamically preloading classes
Abstract
A class preloading mechanism that dynamically preloads classes at runtime in a virtual machine (VM) environment. Data structures representing preloaded classes may be stored in a persistent module corresponding to a classloader. A persistent module can be directly mapped or copied into a memory region at runtime so that the classes may not have to be loaded from the class file container. The preloaded classes are not fully linked and resolved. When a classloader receives a class request, the classloader looks up the preloaded class in the memory region and completes linking and resolution of the class. Persistent modules may be pre-generated and, for example, installed with an application. Alternatively, a persistent module for a class file container may be generated at runtime by preloading classes from the class file container into a memory region and storing data structures representing the classes as a persistent module.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 40 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method, comprising: loading at least one class indicated by a classloader at runtime of a virtual machine (VM) environment on a device, wherein said loading comprises, for at least one class file container indicated by the classloader, prior to the classloader receiving requests for classes defined by the class file container: locating a persistent module external to the virtual machine environment and corresponding to the class file container, wherein the persistent module contains one or more data structures representing classes defined by one or more class files in the respective class fi
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (3 of 3 total)
References Cited — Backward Prior Art (40)
Non-Patent Literature (3)
- ".dex-Dalvik Executable Format," 2007 The Android Open Source Project, downloaded from http://www.netmite.com/android/mydroid/dalvik/docs/dex-format.html on Feb. 22, 2012, 26 pages.
- "Dalvik Bytecode Verifier Notes," 2008 The Android Open Source Project, downloaded from http://www.netmite.com/android/mydroid/dalvik/docs/verifier.html on Feb. 22, 2012, 2 pages.
- "Dalvik Optimization and Verification With dexopt," 2008 The Android Open Source Project, downloaded from http://www.netmite.com/android/mydroid/dalvik/docs/dexopt.html on Feb. 22, 2012, 4 pages.