Changeset 271283b in mainline
- Timestamp:
- 2009-07-02T14:54:50Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0143f72
- Parents:
- d851f597
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/malloc.c
rd851f597 r271283b 281 281 282 282 if (cur->size >= real_size + excess) { 283 /* The current block is large enough tto fit283 /* The current block is large enough to fit 284 284 data in including alignment */ 285 285 if ((void *) cur > heap_start) { … … 299 299 300 300 if ((!prev_head->free) && (excess >= STRUCT_OVERHEAD)) { 301 /* The previous block is not free and there is enough t301 /* The previous block is not free and there is enough 302 302 space to fill in a new free block between the previous 303 303 and current block */ … … 317 317 /* The current block is the first block on the heap. 318 318 We have to make sure that the alignment excess 319 is large enough tto fit a new free block just319 is large enough to fit a new free block just 320 320 before the current block */ 321 321 while (excess < STRUCT_OVERHEAD) {
Note:
See TracChangeset
for help on using the changeset viewer.