Changes in uspace/lib/c/generic/malloc.c [b7fd2a0:582a0b8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/malloc.c
rb7fd2a0 r582a0b8 33 33 /** @file 34 34 */ 35 36 #define _HELENOS_SOURCE37 35 38 36 #include <malloc.h> … … 198 196 static futex_t malloc_futex = FUTEX_INITIALIZER; 199 197 200 #define malloc_assert(expr) safe_assert(expr) 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 201 214 202 215 #ifdef FUTEX_UPGRADABLE … … 398 411 399 412 /* Resize the address space area */ 400 errno_t ret = as_area_resize(area->start, asize, 0);413 int ret = as_area_resize(area->start, asize, 0); 401 414 if (ret != EOK) 402 415 return false; … … 491 504 492 505 /* Resize the address space area */ 493 errno_t ret = as_area_resize(area->start, asize, 0);506 int ret = as_area_resize(area->start, asize, 0); 494 507 if (ret != EOK) 495 508 abort();
Note:
See TracChangeset
for help on using the changeset viewer.