4.8.6. __Heap_ProvideMemory()

Called to increase the size of the heap.


void __Heap_ProvideMemory(struct __Heap_Descriptor* h, void* base, size_t size);


This is called when the system provides a chunk of memory for use by the heap. The parameters are:

  • your heap descriptor

  • a pointer to a new 8-byte aligned block of memory

  • the size of the block.

__Heap_ProvideMemory() can assume that the input block is 8-byte aligned. A typical __Heap_ProvideMemory() implementation might set up the new block of memory as a free-list entry and add it to the free chain.

Copyright © 1999-2001 ARM Limited. All rights reserved.ARM DUI 0067D