Changeset ffccdff0 in mainline for uspace/lib/c/generic/malloc.c
- Timestamp:
- 2020-06-15T13:29:29Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4f663f3e
- Parents:
- 128359eb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/malloc.c
r128359eb rffccdff0 35 35 36 36 #include <malloc.h> 37 #include <stdalign.h> 37 38 #include <stdbool.h> 38 39 #include <stddef.h> … … 198 199 199 200 #define malloc_assert(expr) safe_assert(expr) 201 202 /* 203 * Make sure the base alignment is sufficient. 204 */ 205 static_assert(BASE_ALIGN >= alignof(heap_area_t), ""); 206 static_assert(BASE_ALIGN >= alignof(heap_block_head_t), ""); 207 static_assert(BASE_ALIGN >= alignof(heap_block_foot_t), ""); 208 static_assert(BASE_ALIGN >= alignof(max_align_t), ""); 200 209 201 210 /** Serializes access to the heap from multiple threads. */
Note:
See TracChangeset
for help on using the changeset viewer.