Method and apparatus for pre-processing and packaging class files
Abstract
A method and apparatus for pre-processing and packaging class files. Embodiments remove duplicate information elements from a set of class files to reduce the size of individual class files and to prevent redundant resolution of the information elements. Memory allocation requirements are determined in advance for the set of classes as a whole to reduce the complexity of memory allocation when the set of classes are loaded. The class files are stored in a single package for efficient storage, transfer and processing as a unit. In an embodiment, a pre-processor examines each class file in a set of class files to locate duplicate information in the form of redundant constants contained in a constant pool. The duplicate constant is placed in a separate shared table, and all occurrences of the constant are removed from the respective constant pools of the individual class files. During pre-processing, memory allocation requirements are determined for each class file, and used to determine a total allocation requirement for the set of class files. The shared table, the memory allocation requirements and the reduced class files are packaged as a unit in a multi-class file.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 20 · Forward citations: 52.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method for processing classes comprising: obtaining duplicative information comprising one or more duplicated elements from one or more classes; obtaining one or more reduced classes by removing said one or more duplicated elements from said one or more classes; obtaining a multi-class file comprising said duplicative information and said reduced classes; and allocating a dynamic memory to receive said multi-class file, said multi-class file to be completely received into said dynamic memory.
- Claim 2Depends on #1
The method of claim 1 wherein said multi-class file further comprises memory allocation information.
- Claim 3Depends on #2
The method of claim 2 wherein said memory allocation information comprises a memory requirement for each of said one or more reduced classes.
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 52 total)
References Cited — Backward Prior Art (20)
Non-Patent Literature (2)
- "OBJECT-ORIENTED PROGRAMMING IN C-THE LINNAEUS SYSTEM," IBM Technical Disclosure Bulletin, vol. 32, No. 9B, Feb. 1, 1990, pp. 437-439.
- Sheng Liang and Gilad Bracha, Dynamic Class Loading in the Java Virtual Machine, Proceedings of the Conference on Object-Oriented Programming, Systems, Languages, and Applications, 1998, ACM Press, pp. 36-44.*