#1258 closed defect (fixed)

_Heap_Allocate_aligned() is broken (by patch to PR746).

Reported by: osv Owned by: Joel Sherrill
Priority: normal Milestone: 4.8
Component: score Version: 4.7
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

Change of the heap allocation strategy introduced by the patch for PR746/rtems (heap manager, when splits larger free block into used and new free parts, now makes the first part of the block used, not the last one as it was before) breaks _Heap_Allocate_aligned() that was not updated accordingly.

Fixing this is not trivial, as requirements imposed by _Heap_Resize_block() and _Heap_Allocate_aligned() are somewhat contradicting. I'm now trying to figure out the best solution for this issue.

Attachments (3)

pr1258.tar.bz2 (906 bytes) - added by Joel Sherrill on Sep 12, 2007 at 4:00:59 PM.
test case
rtems-20070912-pr1258.patch.gz (2.1 KB) - added by osv on Sep 12, 2007 at 5:21:12 PM.
Patch that fixes the issue.
rtems-20070912-pr1258.patch_v1.gz (2.1 KB) - added by osv on Sep 12, 2007 at 5:24:52 PM.
Previous patch re-attached as different content type.

Download all attachments as: .zip

Change History (5)

Changed on Sep 12, 2007 at 4:00:59 PM by Joel Sherrill

Attachment: pr1258.tar.bz2 added

test case

Changed on Sep 12, 2007 at 5:21:12 PM by osv

Patch that fixes the issue.

Changed on Sep 12, 2007 at 5:24:52 PM by osv

Previous patch re-attached as different content type.

comment:1 Changed on Sep 12, 2007 at 5:24:52 PM by osv

attachments.isobsolete: 01

comment:2 Changed on Sep 12, 2007 at 7:14:46 PM by Joel Sherrill

Resolution: fixed
Status: newclosed

Patch applied to 4.7 branch and CVS head.

Note: See TracTickets for help on using tickets.