Patent ID: 9032178
Filing Date: 2015-05-12
Classification: G06F

Abstract:
1. An electronic apparatus comprising: a memory control part that carries out allocation and deallocation of a memory area in a memory space; a memory reorganization part that carries out a reorganization process of moving the memory area allocated by the memory control part and creating a contiguous free space in the memory space; a reorganization control part that causes the reorganization part to carry out the reorganization process in a case where a first predetermined condition is met, and does not cause the reorganization part to carry out the reorganization process in a case where a second predetermined condition different from the first predetermined condition is met; and a determination part that determines whether the memory areas that have been already allocated by the memory control part include the memory area having a size greater than or equal to a predetermined threshold in a case where there is no contiguous memory area in the memory space having a size greater than or equal to a size of a memory area to be allocated when the memory control part is to allocate the memory area, wherein the reorganization control part causes the reorganization part to carry out the reorganization process in a case where, as the first predetermined condition, the determination part has determined that no memory area exists having a size greater than or equal to the predetermined threshold, and does not cause the reorganization part to carry out the reorganization process in a case where, as the second predetermined condition, the determination part has determined that the memory area exists having the size greater than or equal to the predetermined threshold.