AVR C Runtime Library - Patches: patch #6935, Patch for malloc()
You are not allowed to post comments on this tracker with your current authentication level.
patch #6935: Patch for malloc()
Submitter: | Michael Baeuerle <micha123> | ||
Submitted: | Tue 06 Oct 2009 08:11:37 AM UTC | ||
Category: | None | Priority: | 5 - Normal |
Status: | Wont Do | Privacy: | Public |
Assigned to: | joerg_wunsch | Open/Closed: | Closed |
Tue 08 Jun 2010 01:47:00 PM UTC, comment #3: |
Joerg Wunsch <joerg_wunsch> |
Tue 08 Jun 2010 01:40:40 PM UTC, comment #2: The problem was that the memory beyond the last used chunk was not always available. If malloc() is called with a size that fits after the last used chunk but is larger than every block in the freelist and larger than the unused space beyond the freelist, the request was rejected. |
Michael Baeuerle <micha123> |
Tue 08 Jun 2010 11:14:30 AM UTC, comment #1: I reimplemented some parts of free() yesterday, so __brkval
|
Joerg Wunsch <joerg_wunsch> |
Tue 06 Oct 2009 08:11:37 AM UTC, original submission:
This patch is for avr-libc 1.6.7. It allows malloc() to combine new memory from heap extension with the last block in the freelist (if there are no used blocks in between).
|
Michael Baeuerle <micha123> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 5 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2010-06-08 | joerg_wunsch | Status | Need Info | Wont Do | |
Open/Closed | Open | Closed | |||
2010-06-08 | joerg_wunsch | Status | None | Need Info | |
Assigned to | None | joerg_wunsch | |||
2009-10-06 | micha123 | Attached File | - | Added malloc_patch, #18819 |
Powered by Savane 3.13-f8d8.
Corresponding source code
OK, we can close this then.
Please test the rewritten implementation to see whether it
works the way you expect it to. I wrote some test scripts,
too, but the more people look at it, the better.