[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [task #6863] Create option to use different size pools (usi

From: Frédéric Bernon
Subject: [lwip-devel] [task #6863] Create option to use different size pools (using memp) instead of heap
Date: Tue, 12 Jun 2007 06:59:15 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv: Gecko/20070515 Firefox/

Follow-up Comment #4, task #6863 (project lwip):

Not yet a solution to use the preprocessor, but some remarks:

- in mem_malloc, the "if (poolnr==-1)" should be "if (poolnr>=(MEMP_MEM_POOL
+ MEM_POOL_COUNT))" and the initialization of the variable (-1) should be

- I think your "struct memp_header" should have to be aligned, else, I'm not
sure that the "void*" return per mem_malloc (sizeof("element") could be

- Perhaps so assert to check alignement in mem_malloc (like in mem_free)?

- I confirm that a "stats" feature could really help to determinate size and
number of pool...

But it's a good idea to avoid fragmentation...


Reply to this item at:


  Message posté via/par Savannah

reply via email to

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