摘要 |
A computer system includes a virtual machine supporting an object-oriented environment, in which programs to run on the virtual machine are formed from classes loaded into the virtual machine by a class loader. A class must be initialized before being used by a program. A first application is started on the virtual machine, and a set of one or more classes are loaded and initialized for the first application, which is then run. After the first application has finished running, at least one class from the first application is reset. A second application is then started on the virtual machine. This (re)-initializes any classes that have been reset from the first application, prior to using them, but does not have to reload any reset classes.
|