Operation processing device and method of detecting memory leak
AssigneeFujitsu Limited
InventorMasafumi HASHIGUCHI
Life of this patent
Estimating the term…
Abstract
A memory leak detecting method includes: producing an object which occupies an area on a first area of the memory; checking a presence of a pointer which points at the object separately so as to remove the object and to repeatedly carry out a process for counting up a counter value of the object separately upon the pointer not being present and being present; moving the area occupied by the object from the area on the first area of the memory to an area on the second area of the memory upon the counter value exceeding a first threshold; and moving the area occupied by the object from the area on the second area to the area on the first area and clearing the counter value of the object upon the object occupying the area on the second area being run.
Claims7
A method of detecting a memory leak of an operation processing device having a processor and a memory using the processor, the processor being configured to run a program, the memory being configured to be accessed upon the program being run, the method comprising:
- producing an object which occupies an area on a first area of the memory;
- checking a presence of a pointer which points at the object separately so as to remove the object and to repeatedly carry out a process for counting up a counter value of the object separately upon the pointer not being present and being present, respectively;
- moving the area occupied by the object from the area on the first area of the memory to an area on the second area of the memory upon the counter value exceeding a first threshold;
- moving the area occupied by the object from the area on the second area to the area on the first area and clearing the counter value of the object upon the object occupying the area on the second area being run;
- and
- announcing the object occupying the area on the second area upon the counter value exceeding a second threshold.
An operation processing device comprising:
- a processor configured to run a program;
- and
- a memory configured to be accessed upon the program being run, the memory having a first area and a second area, wherein the processor:
- produces an object which occupies an area on the first area;
- checks a presence of a pointer which points at the object separately so as to remove the object and to repeatedly carries out a process for counting up a counter value of the object separately upon the pointer not being present and being present, respectively;
- moves the area occupied by the object from the area on the first area of the memory to an area on the second area of the memory upon the counter value exceeding a first threshold;
- moves the area occupied by the object from the area on the second area to the area on the first area and clearing the counter value of the object upon the object occupying the area on the second area being run;
- and
- announces the object occupying the area on the second area upon the counter value exceeding a second threshold.
Dependencies are inferred from the claim text.