Changeset a46da63 in mainline for libc/malloc/malloc.c
- Timestamp:
- 2006-06-16T20:50:51Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 153a209
- Parents:
- b34fab6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libc/malloc/malloc.c
rb34fab6 ra46da63 2931 2931 sp->size >= extra && 2932 2932 !has_segment_link(m, sp)) { /* can't shrink if pinned */ 2933 size_t newsize = sp->size - extra;2934 2933 /* Prefer mremap, fall back to munmap */ 2935 if ((CALL_MREMAP(sp->base, sp->size, newsize, 0) != MFAIL) ||2936 (CALL_MUNMAP(sp->base + newsize, extra) == 0)) {2934 if ((CALL_MREMAP(sp->base, sp->size, sp->size - extra, 0) != MFAIL) || 2935 (CALL_MUNMAP(sp->base + sp->size - extra, extra) == 0)) { 2937 2936 released = extra; 2938 2937 }
Note:
See TracChangeset
for help on using the changeset viewer.