Memory management method and computer
AssigneeHitachi, Ltd.
InventorsMotoki Obata, Hiroyasu Nishiyama, Masahiko Adachi
Life of this patent
Estimating the term…
Abstract
A memory management method is provided to manage a memory in which areas of a garbage collected Java heap memory and a non-garbage collected external heap memory can be secured, by using a program executed by a processor in a computer. If it is judged that there is no reference to all data arranged in the external heap memory or starting point data of reference relations included in the all data, from data arranged outside the external heap memory, then the external heap memory is judged to be capable of being deallocated. As a result, it becomes possible to implement memory management in which garbage collection needing a long time program stop is not conducted and an additional API is not used.
Claims13
A memory management method for managing a memory which secures a first memory area, which is subject to garbage collection, and a second memory area, which is not subject to garbage collection, by using a program executed by a processor in a computer,
- in a case where the second memory area, which is not subject to garbage collection, comprises starting point data on the reference relation related to the second memory area and other data which are not the starting point data, wherein the starting point data refers to first data in a sequence of data referencing;
- the method comprising:
- judging, using the computer, whether there is at least one reference to the other data arranged in the second memory area and whether there is no reference to the starting point data in the second memory area by data arranged outside the second memory area, and
- judging, using the computer, the second memory area to be capable of being deallocated when it is judged that
- there is at least one reference to the other data arranged in the second memory area;
- and
- there is no reference to the starting point data in the second memory area by the data arranged outside the second memory area.
A computer comprising:
- a memory configured to secure a first memory area which is subject to garbage collection and a second memory area which is not subject to garbage collection therein;
- a processor configured
- to judge, in a case where the second memory area, which is not subject to garbage collection, comprises starting point data on the reference relation related to the second memory area and other data which are not the starting point data, the starting point data referring to first data in a sequence of data referencing,
- whether there is at least one reference to the other data arranged in the second memory area, and
- whether there is no reference to the starting point data in the second memory area from data arranged outside the second memory area, and
- to judge the second memory area to be capable of being deallocated, when it is judged that
- there is at least one reference to the other data arranged in the second memory area;
- and
- there is no reference to the starting point data in the second memory area from by the data arranged outside the second memory area.
Dependencies are inferred from the claim text.