Changeset e6eee2b in mainline
- Timestamp:
- 2011-05-17T19:33:17Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f10edae
- Parents:
- 38c773e7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/malloc.c
r38c773e7 re6eee2b 397 397 assert(first_head->area == area); 398 398 399 size_t shrink_size = ALIGN_DOWN(last_head->size, PAGE_SIZE); 400 399 401 if (first_head == last_head) { 400 402 /* … … 420 422 421 423 as_area_destroy(area->start); 422 } else if ( last_head->size >= SHRINK_GRANULARITY) {424 } else if (shrink_size >= SHRINK_GRANULARITY) { 423 425 /* 424 426 * Make sure that we always shrink the area … … 427 429 */ 428 430 429 size_t shrink_size = ALIGN_DOWN(last_head->size, PAGE_SIZE);430 431 size_t asize = (size_t) (area->end - area->start) - shrink_size; 431 432 void *end = (void *) ((uintptr_t) area->start + asize); … … 466 467 } 467 468 } 468 469 470 469 } 471 470 }
Note:
See TracChangeset
for help on using the changeset viewer.