Patent ID: 6839726
Filing Date: 2005-01-04
Classification: G06F,Y10S

Abstract:
1. A garbage collection apparatus for deallocating memory that is not used by an application program, the application program being composed of methods, comprising: an allocation unit operable to allocate a memory area for each method prior to execution of the method; a storage unit operable to store an allocation time as to when each memory area is allocated; a relocation unit operable to judge, when a pointer to an object is recorded in one memory area allocated for a method, whether an allocation time of the memory area is prior to an allocation time of a memory area storing the object, and to relocate, when judging affirmative, the object to the memory area in which the pointer is recorded; and a deallocation unit operable to deallocate, at completion of a method, a memory area corresponding to the completed method.