Dynamic memory allocation suitable for stride-based prefetching
Abstract
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.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 7 · Forward citations: 56.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method for dynamic memory allocation in a computer system, comprising: receiving a first request for dynamic allocation of a first memory block including a first number of bytes; allocating said first memory block at a first address succeeding a second address corresponding to a last byte of a previously allocated memory block having said first number of bytes; allocating said first memory block at a third address if said previously allocated memory block has a second number of bytes not equal to said first number of bytes; and reserving a second memory block beginning at said third ad
- Claim 2Depends on #1
The method as recited in claim 1 wherein said reserving comprises storing said third address, said first number of bytes, and sai
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 56 total)
References Cited — Backward Prior Art (7)
Non-Patent Literature (2)
- Kernighan et al., "The C Programming Language," Prentice Hall, Englewood Cliffs, New Jersey, 1978, pp. 96-99 and 173-177.
- Kernighan et al., The C Programming Language, Prentice Hall, Englewood Cliffs, New Jersey, 1978, pp. 96 99 and 173 177.