发明名称 Dynamic memory allocation suitable for stride-based prefetching
摘要 A dynamic memory allocation routine maintains an allocation size cache which records the address of a most recently allocated memory block for each different size of memory block that has been allocated. Upon receiving a dynamic memory allocation request, the dynamic memory allocation routine determines if the requested size is equal to one of the sizes recorded in the allocation size cache. If a matching size is found, the dynamic memory allocation routine attempts to allocate a memory block contiguous to the most recently allocated memory block of that matching size. If the contiguous memory block has been allocated to another memory block, the dynamic memory allocation routine attempts to reserve a reserved memory block having a size which is a predetermined multiple of the requested size. The requested memory block is then allocated at the beginning of the reserved memory block. By reserving the reserved memory block, the dynamic memory allocation routine may increase the likelihood that subsequent requests for memory blocks having the requested size can be allocated in contiguous memory locations.
申请公布号 US6076151(A) 申请公布日期 2000.06.13
申请号 US19970948947 申请日期 1997.10.10
申请人 ADVANCED MICRO DEVICES, INC. 发明人 MEIER, STEPHAN G.
分类号 G06F9/38;G06F12/08;(IPC1-7):G06F17/30 主分类号 G06F9/38
代理机构 代理人
主权项
地址