摘要 |
A dynamic memory management method suitable for a memory allocation request of various applications can include predicting whether an object for which memory allocation is requested is a short-lived first type object or a long-lived second type object by using index information relating to the size of the object; determining whether a heap memory includes a free block that is to be allocated to the object by using a plurality of free lists that are classified as a plurality of hierarchical levels; and allocating the free block to the object if the heap memory is determined to include the free block, wherein, if the object is predicted to be the first type object, the free block is allocated to the object in a first direction in the heap memory, and, if the object is predicted to be the second type object, the free block is allocated to the object in a second direction in the heap memory.
|