摘要 |
PROBLEM TO BE SOLVED: To clearly unload an optional program in each prescribed unit in a program execution mechanism having structure capable of loading a necessary program in each prescribed unit such as a class in accordance with the execution of the program. SOLUTION: When class deletion is requested, an object generation suppression part 13 sets up an object generation suppression flag in class management data structure 11 to an inhibited state. When the flag is in the inhibited state, an object generation part 12 does not newly generate an object even when object generation is requested. Thus, objects are only recovered by a garbage collector 14 and gradually reduced. At the time of detecting the deletion of all objects, a class unload execution part 15 unloads all classes. Then the collector 14 deletes a class loader object for loading the classes.
|