Changes in uspace/lib/c/generic/malloc.c [582a0b8:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/malloc.c
r582a0b8 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 … … 411 398 412 399 /* Resize the address space area */ 413 int ret = as_area_resize(area->start, asize, 0);400 errno_t ret = as_area_resize(area->start, asize, 0); 414 401 if (ret != EOK) 415 402 return false; … … 504 491 505 492 /* Resize the address space area */ 506 int ret = as_area_resize(area->start, asize, 0);493 errno_t ret = as_area_resize(area->start, asize, 0); 507 494 if (ret != EOK) 508 495 abort();
Note:
See TracChangeset
for help on using the changeset viewer.