#523 closed defect (fixed)

Make malloc family safer from ISRs and critical sections

Reported by: Joel Sherrill Owned by: Jennifer Averett
Priority: normal Milestone: 2
Component: fs Version: 4.6
Severity: major Keywords:
Cc: bugs@…, joel.sherrill@… Blocked By:


Currently, any attempt to malloc() or free() memory from within an ISR or dispatching disabled critical section could result in an attempt to block the calling task. It is also an error now to lock a mutex with dispatching disabled.

Suggestions included a garbage collection task and a deferred free list.

Fix will be attached once PR is in system.

RTEMS-4.6 and CVS

Attachments (1)

pr523.diff (1.9 KB) - added by Joel Sherrill on Dec 3, 2006 at 1:31:12 PM.

Download all attachments as: .zip

Change History (2)

comment:1 Changed on Nov 26, 2003 at 4:51:23 PM by Joel Sherrill

Status: assignedclosed

State-Changed-From-To: open->closed
State-Changed-Why: patch applied to trunk and 4.6 branch.

Changed on Dec 3, 2006 at 1:31:12 PM by Joel Sherrill

Attachment: pr523.diff added


Note: See TracTickets for help on using tickets.