Changeset f450280 in mainline
- Timestamp:
- 2009-07-13T21:24:30Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7d88587
- Parents:
- 44539b4c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/malloc.c
r44539b4c rf450280 385 385 386 386 void *ptr = NULL; 387 size_t real_size = GROSS_SIZE( size);387 size_t real_size = GROSS_SIZE(ALIGN_UP(size, BASE_ALIGN)); 388 388 size_t orig_size = head->size; 389 389 … … 410 410 block_check(next_head); 411 411 block_init(head, head->size + next_head->size, false); 412 split_mark(head, size);412 split_mark(head, ALIGN_UP(size, BASE_ALIGN)); 413 413 414 414 ptr = ((void *) head) + sizeof(heap_block_head_t);
Note:
See TracChangeset
for help on using the changeset viewer.