|
iPXE
|
A free block of memory. More...
Data Fields | |
| size_t | size |
| Size of this block. More... | |
| char | pad [offsetof(struct refcnt, count)+sizeof(((struct refcnt *) NULL) ->count)] |
| Padding. More... | |
| struct list_head | list |
| List of free blocks. More... | |
| size_t memory_block::size |
Padding.
This padding exists to cover the "count" field of a reference counter, in the common case where a reference counter is the first element of a dynamically-allocated object. It avoids clobbering the "count" field as soon as the memory is freed, and so allows for the possibility of detecting reference counting errors.
| struct list_head memory_block::list |
List of free blocks.
Definition at line 58 of file malloc.c.
Referenced by check_blocks(), heap_alloc_block(), heap_dump(), heap_free_block(), valgrind_make_blocks_defined(), and valgrind_make_blocks_noaccess().
1.8.15