#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:
Blocking:

Description

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.

Release:
RTEMS-4.6 and CVS

Attachments (1)

pr523.diff (1.9 KB) - added by Joel Sherrill on 12/03/06 at 13:31:12.
pr523.diff

Download all attachments as: .zip

Change History (2)

comment:1 Changed on 11/26/03 at 16:51:23 by Joel Sherrill

Status: assignedclosed

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

Changed on 12/03/06 at 13:31:12 by Joel Sherrill

Attachment: pr523.diff added

pr523.diff

Note: See TracTickets for help on using tickets.