摘要 |
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.
|