Changes in uspace/lib/c/generic/malloc.c [46577995:b7fd2a0] in mainline
- File:
-
- 1 edited
-
uspace/lib/c/generic/malloc.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/malloc.c
r46577995 rb7fd2a0 33 33 /** @file 34 34 */ 35 36 #define _HELENOS_SOURCE 35 37 36 38 #include <malloc.h> … … 196 198 static futex_t malloc_futex = FUTEX_INITIALIZER; 197 199 198 #ifndef NDEBUG 199 200 #define malloc_assert(expr) \ 201 do { \ 202 if (!(expr)) {\ 203 heap_unlock(); \ 204 assert_abort(#expr, __FILE__, __LINE__); \ 205 } \ 206 } while (0) 207 208 #else /* NDEBUG */ 209 210 #define malloc_assert(expr) 211 212 #endif /* NDEBUG */ 213 200 #define malloc_assert(expr) safe_assert(expr) 214 201 215 202 #ifdef FUTEX_UPGRADABLE
Note:
See TracChangeset
for help on using the changeset viewer.
