Method and system for performing static initialization
US6061520A · kind A · utility
Assignee
Inventors
Key dates
| Filing date | Apr 7, 1998 |
| Grant date | May 9, 2000 |
| Priority date | — |
| Expiry date | Apr 7, 2018 |
Classification
- Technology area (CPC G)Physics
- CPC primaryG06F9/445
- WIPO fieldComputer technology
- WIPO sectorElectrical engineering
Abstract
The disclosed system represents an improvement over conventional systems for initializing static arrays by reducing the amount of code executed by the virtual machine to statically initialize an array. To realize this reduction, when consolidating class files, the preloader identifies all <clinit> methods and play executes these methods to determine the static initialization performed by them. The preloader then creates an expression indicating the static initialization performed by the <clinit> method and stores this expression in the .mclass file, replacing the <clinit> method. As such, the code of the <clinit> method, containing many instructions, is replaced by a single expression instructing the virtual machine to perform static initialization, thus saving a significant amount of memory. The virtual machine is modified to recognize this expression and perform the appropriate static initialization of an array.
Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.