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/ _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-libc-dev