Electronic equipment and memory managing program
AssigneeKYOCERA Document Solutions Inc.
InventorToshiaki Ueno
Life of this patent
Estimating the term…
Abstract
The present invention claims and discloses an electronic equipment capable of executing a processing executing program that performs a predetermined processing. The electronic equipment comprises a memory; a setting unit that sets an allocation time for a memory region in the memory that the processing executing program is to use; and a memory leak detecting unit that detects when the memory region has not been deallocated within the allocation time.
Claims5
An electronic equipment that executes a processing executing program that performs predetermined processing, the electronic equipment comprising:
- a memory;
- an allocation time setting unit that sets an allocation time for a memory region in the memory that the processing executing program is to use and that starts counting the allocation time when the memory region is allocated in the memory;
- a memory leak detecting unit that detects an occurrence of the memory region not having been deallocated within the allocation time;
- a forcible deallocation unit that, when the memory leak detecting unit detects the occurrence of the memory region not having been deallocated within the allocation time, forcibly deallocates the memory region;
- a forcible deallocation window time setting unit that sets a forcible deallocation window time for suspending a forcible deallocation of the memory region and that starts counting the forcible deallocation window time when the memory leak detecting unit detects the occurrence of the memory region not having been deallocated within the allocation time;
- and
- a second memory leak detecting unit that detects the occurrence of the memory region not having been deallocated within the forcible deallocation window time, wherein
- the forcible deallocation unit forcibly deallocates the memory region when it has been detected by the second memory leak detecting unit that the memory region has not been deallocated within the forcible deallocation window time.
An electronic equipment that executes a processing executing program that performs predetermined processing, the electronic equipment comprising:
- a memory;
- an allocation time setting unit that sets an allocation time for a memory region in the memory that the processing executing program is to use and that starts counting the allocation time when the memory region is allocated in the memory;
- a memory leak detecting unit that detects an occurrence of the memory region not having been deallocated within the allocation time;
- a processing unit that executes the predetermined processing and that is realized as a result of all or part of the processing executing program being executed,
- a memory manager that allocates the memory region;
- a second memory leak detecting unit that, when the memory region has not been deallocated within the allocation time after allocation of the memory region by the memory manager, detects the occurrence of the memory region not having been deallocated within a predetermined time period by the memory region deallocation request of the processing unit;
- and
- a forcible deallocation unit that, when it has been detected by the second memory leak detecting unit that the memory region has not been deallocated within the predetermined time period, forcibly deallocates the memory region wherein when a memory region allocation request is issued by the processing unit, the memory manager allocates the requested memory region, and the allocation time setting unit associates, with the processing unit, and sets the allocation time of the memory region on the basis of the memory region allocation request, wherein
- when the memory region has not been deallocated within the allocation time after allocation of the memory region by the memory manager, the memory leak detecting unit issues, to the processing unit a notification indicating that the memory region has not been deallocated within the allocation time;
- and
- when the memory region has not been deallocated within the allocation time after allocation of the memory region by the memory manager, the predetermined time period is set in a timer and the timer starts counting the predetermined time period.
Dependencies are inferred from the claim text.