/[avr-libc]
ViewVC logotype

Revision 2131


Jump to revision: Previous Next
Author: joerg_wunsch
Date: Mon Jun 7 18:09:17 2010 UTC (13 years, 5 months ago)
Changed paths: 10
Log Message:
bug #27235, malloc: Several things go wrong
* libc/stdlib/malloc.c (malloc): Revert the patch
from r2123, as it is no longer needed.
* libc/stdlib/malloc.c (free): When freeing the
topmost chunk of the heap, reduce __brkval again,
returning the area from the heap entirely.
* doc/api/malloc.dox: Mention that the heap is now
reduced if possible.
* tests/simulate/regression/bug-27242.c: Adapt testscript
to match the new behaviour.
* tests/simulate/stdlib/malloc-1.c: (Ditto.)
* tests/simulate/stdlib/malloc-6.c: (Ditto.)
* tests/simulate/stdlib/malloc-7.c: (Ditto.)
* tests/simulate/stdlib/realloc-2.c: New file (test whether
subsequent allocation does not extend the heap).
* tests/simulate/regression/bug-28135.c: New file, another
regression test (actual bugfix from bug #28135 is no longer
needed)


Changed paths:

Path Details
Directorytrunk/avr-libc/ChangeLog modified , text changed
Directorytrunk/avr-libc/NEWS modified , text changed
Directorytrunk/avr-libc/doc/api/malloc.dox modified , text changed
Directorytrunk/avr-libc/libc/stdlib/malloc.c modified , text changed
Directorytrunk/avr-libc/tests/simulate/regression/bug-27242.c modified , text changed
Directorytrunk/avr-libc/tests/simulate/regression/bug-28135.c added
Directorytrunk/avr-libc/tests/simulate/stdlib/malloc-1.c modified , text changed
Directorytrunk/avr-libc/tests/simulate/stdlib/malloc-6.c modified , text changed
Directorytrunk/avr-libc/tests/simulate/stdlib/malloc-7.c modified , text changed
Directorytrunk/avr-libc/tests/simulate/stdlib/realloc-2.c added

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.5