avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] [bug #28135] malloc(): expand the last free chunk when ex


From: Aleksandar Kanchev
Subject: [avr-libc-dev] [bug #28135] malloc(): expand the last free chunk when expanding __brkval
Date: Mon, 30 Nov 2009 22:38:06 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091105 Fedora/3.5.5-1.fc11 Firefox/3.5.5 AutoPager/0.5.2.2 (http://www.teesoft.info/)

URL:
  <http://savannah.nongnu.org/bugs/?28135>

                 Summary: malloc(): expand the last free chunk when expanding
__brkval
                 Project: AVR C Runtime Library
            Submitted by: kanchev
            Submitted on: Mon 30 Nov 2009 10:38:05 PM GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: libc code
                  Status: None
        Percent Complete: 100%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.7.*
           Fixed Release: None

    _______________________________________________________

Details:

This bug covers the situation described in patch #6895 and bug #27235.
I've added an alternative patch for this bug and a test case for
regressions.

Quote from patch #6895:
"Situation:
a = malloc(10);
b = malloc(10);
free(b);
Now there is a free chunk at the end of the used area of the heap.
b = malloc(20);
The new request can not be satisfied by any free chunk, therefore the used
area needs to be expanded."



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 30 Nov 2009 10:38:05 PM GMT  Name:
malloc-expand-last-free-chunk.diff  Size: 702B   By: kanchev
make malloc() expand the last free chunk when expanding __brkval
<http://savannah.nongnu.org/bugs/download.php?file_id=19165>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?28135>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]