CPC G06F 12/0292 (2013.01) [G06F 2212/1052 (2013.01)] | 20 Claims |
1. A dynamic memory management apparatus, comprising:
an actual memory configured to allocate or deallocate a heap;
a virtual memory configured to set and store heap allocation information at a virtual address mapped to an actual address that is a body start address of a heap area of the actual memory; and
a dynamic memory manager configured to process a memory allocation or deallocation request received from a program in conjunction with the actual memory and the virtual memory,
wherein the heap allocation information includes access authority information for storing information indicating whether a heap at an actual address is allocated or deallocated, and count information that is increased whenever a heap is allocated, and
wherein the dynamic memory manager is configured to:
return an address pointer including an actual address of a heap allocated to the actual memory and the heap allocation information to the program, and
process a heap deallocation or reallocation request based on the heap allocation information included in a requested address pointer.
|