[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

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:


  Nachricht geschickt von/durch Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]