AVR C Runtime Library - Bugs: bug #27235, malloc: Several things go wrong
You are not allowed to post comments on this tracker with your current authentication level.
bug #27235: malloc: Several things go wrong
| Submitter: | Malte <malte> | ||
| Submitted: | Wed 12 Aug 2009 02:54:00 PM UTC | ||
| Category: | Library | Severity: | 3 - Normal |
| Priority: | 5 - Normal | Item Group: | libc code |
| Status: | Fixed | Percent Complete: | 30% |
| Assigned to: | joerg_wunsch | Open/Closed: | Closed |
| Release: | 1.6.6 | Fixed Release: | None |
Jump to the original submission
|
Mon 07 Jun 2010 06:11:13 PM UTC, comment #6: |
Joerg Wunsch <joerg_wunsch> |
|
Mon 07 Jun 2010 02:46:07 PM UTC, comment #5: Sorry, I confused that with bug #25723. |
Joerg Wunsch <joerg_wunsch> |
|
Mon 07 Jun 2010 02:39:24 PM UTC, comment #4: Stefan, in bug #27242, you are talking about test cases you've
|
Joerg Wunsch <joerg_wunsch> |
|
Fri 04 Jun 2010 02:42:50 PM UTC, comment #3: Patch for first part has been applied, and a testscript has
|
Joerg Wunsch <joerg_wunsch> |
|
Wed 26 Aug 2009 08:58:02 PM UTC, comment #2: Joerg, you're the most familiar with malloc stuff. Assigning to you. |
Eric Weddington <arcanum> |
|
Thu 13 Aug 2009 01:16:33 PM UTC, comment #1: I added a patch as a suggestion for topic 1:
|
Stefan Ernst <sternst> |
|
Wed 12 Aug 2009 02:54:00 PM UTC, original submission:
Already discussed here,
|
Malte <malte> |
Depends on the following items: None found
Items that depend on this one: None found
Follow 6 latest changes.
| Date | Changed by | Updated Field | Previous Value | => | Replaced by |
|---|---|---|---|---|---|
| 2010-06-07 | joerg_wunsch | Status | In Progress | Fixed | |
| Open/Closed | Open | Closed | |||
| 2010-06-04 | joerg_wunsch | Status | None | In Progress | |
| Percent Complete | 0% | 30% | |||
| 2009-08-26 | arcanum | Assigned to | None | joerg_wunsch | |
| 2009-08-12 | malte | Attached File | - | Added tests.zip, #18562 |

I backed out your patch, and instead rewrote free() so it
returns memory from the heap whenever the topmost chunk of
the freelist becomes free. While it increases the codesize
a little, it appears to be the cleanest solution to me.
If you still find any issue with this, please open a new
bug report, preferrably with a test case. Have a look at
the existing testcases to get an idea how they look like.