Changes between Version 5 and Version 6 of kernel_malloc
- Timestamp:
- Dec 28, 2014, 10:14:26 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
kernel_malloc
v5 v6 6 6 7 7 The '''kernel_heap[x][y]''' descriptors array is stored in the kernel_data segment in cluster[0][0]. Each entry [x][y] contains a heap descriptor (kernel_heap_t), defining the current heap state in cluster[x][y]. 8 * All kernel_heap[x][y) descriptors must be initialized once by the '''_heap_init()''' function.8 * All kernel_heap[x][y) descriptors are initialized by the '''_heap_init()''' function, called by the '''_kernel_init()''' function. 9 9 * All allocated blocks have a size that is a power of 2, larger or equal to MIN_BLOCK_SIZE (typically 64 bytes), and are aligned. 10 10 * The memory allocation is done by the '''_remote_malloc()''' function, and there is no free mechanism.