[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #21433] Calling mem_free/pbuf_free from interrupt cont
From: |
Simon Goldschmidt |
Subject: |
[lwip-devel] [bug #21433] Calling mem_free/pbuf_free from interrupt context isn't safe |
Date: |
Fri, 27 Jun 2008 21:00:15 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9) Gecko/2008052906 Firefox/3.0 |
Update of bug #21433 (project lwip):
lwIP version: None => CVS Head
_______________________________________________________
Follow-up Comment #23:
Jonathan: I've changed mem_free/mem_malloc according to your idea from
comment #10
(with the little change that I only start re-searching from the beginning if
mem_free interrupted mem_malloc and it runs to the end without finding
anything: longer but the re-search should occur less often)
I'll attach a patch file. Since I tested it, I'm pretty sure it works... We
even could make this the standard way and remove the
LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT define.
BTW: mem_realloc behaves like mem_free: even if it is not used from interrupt
context, it is faster that way!
(file #15950)
_______________________________________________________
Additional Item Attachment:
File name: mem.c_21433.patch Size:7 KB
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?21433>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #21433] Calling mem_free/pbuf_free from interrupt context isn't safe,
Simon Goldschmidt <=