Garbage collector and its collectrion method
A technology of storage unit and collection device, which is applied in the direction of memory system, multi-program device, program control device, etc., and can solve the problems of difficult use conditions, difficult to predict interruption time and time, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0054] figure 1 Shown is a functional block diagram of the garbage collection device 100 according to Embodiment 1 of the present invention.
[0055] The garbage collection device 100 is a software device. In a computer equipped with a CPU, a memory, etc., the CPU executes a control program stored in the memory. It operates on the operating system and is executed by an application program formed by the Java language or the like. part of the environment.
[0056] In this figure, the garbage collection unit 100 is composed of a frame generation unit 10, a generation stack generation unit 20, a frame release unit 30, a generation stack release unit 40, a generation stack management unit 50, a stack memory management unit 60, and an object generation unit 70. , and an inter-generational object moving unit 80.
[0057] The frame generating unit 10 generates a frame in the memory area every time a method of the application program is called, and manages the generated frame on a st...
Embodiment 2
[0159] Next, a garbage collection device according to Embodiment 2 of the present invention will be described.
[0160] In addition to the functions of the garbage collection device 100 of Embodiment 1, the waste storage unit collection device of Embodiment 2 also has the function that there is no gap in the generation stack when the object is generated or moved, and when the object cannot be generated or moved, based on the flag and The scan method is a function to clear the stack of this generation and the stack of generations newer than it. Among them, the clearing process is a process of reclaiming used objects in the generation stack and increasing the empty area by freeing these objects. In addition, other existing garbage collection algorithms can also be used instead of the mark and scan method.
[0161] Figure 9 is a configuration diagram of the garbage collection device 200 according to the second embodiment.
[0162] In this figure, the garbage collection device...
Embodiment 3
[0221] Next, an apparatus for collecting useless storage units according to Embodiment 3 of the present invention will be described.
[0222] In addition to the function of the useless storage unit collection device 200 of the embodiment 2, the waste storage unit collection device of embodiment 3 also has the following functions: Figure 11 Function to move unreleased remaining objects to an older generation stack after the clearing process of the generation stack shown in (c).
[0223] Figure 14 is a configuration diagram of the garbage collection device 300 according to the third embodiment.
[0224] In this figure, the garbage collection device 300 is composed of a frame generation unit 10, a generation stack generation unit 20, a frame release unit 30, a generation stack release unit 40, a generation stack management unit 50, a stack memory management unit 60, and an object generation unit 72. , generation stack clearing unit 93 and inter-generational object moving unit...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 