摘要 |
PROBLEM TO BE SOLVED: To provide a system capable of automatically eliminating uselessness in an object size without changing an existing application.SOLUTION: This system periodically extracts a collection object expected to have less updating due to completion of initialization, and checks a utilization factor of an internal data structure. When the utilization factor is low, a runtime system automatically reduces a capacity of the internal data structure. At this time, unnecessary memory use can be reduced irrespective of skill of an application developer with the capacity automatically reduced. According to another aspect of the invention, the collection object can be efficiently mounted by performing reduction processing at the time of GC. That is, in object moving processing by GC, since it is originally required to correct object reference, if capacity reduction is simultaneously performed, the processing for correcting object reference to relocate data matching with the capacity after the reduction can be achieved without an additional overhead. |