[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:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4 |
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
removed...
- 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
non-aligned).
- 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:
<http://savannah.nongnu.org/task/?6863>
_______________________________________________
Message posté via/par Savannah
http://savannah.nongnu.org/
- [lwip-devel] [task #6863] Create option to use different size pools (using memp) instead of heap, Simon Goldschmidt, 2007/06/11
- [lwip-devel] [task #6863] Create option to use different size pools (using memp) instead of heap, Frédéric Bernon, 2007/06/11
- [lwip-devel] [task #6863] Create option to use different size pools (using memp) instead of heap, Simon Goldschmidt, 2007/06/11
- [lwip-devel] [task #6863] Create option to use different size pools (using memp) instead of heap, Simon Goldschmidt, 2007/06/11
- [lwip-devel] [task #6863] Create option to use different size pools (using memp) instead of heap,
Frédéric Bernon <=
- [lwip-devel] [task #6863] Create option to use different size pools (using memp) instead of heap, Kieran Mansley, 2007/06/12
- [lwip-devel] [task #6863] Create option to use different size pools (using memp) instead of heap, Simon Goldschmidt, 2007/06/13
- [lwip-devel] [task #6863] Create option to use different size pools (using memp) instead of heap, Frédéric Bernon, 2007/06/13
- [lwip-devel] [task #6863] Create option to use different size pools (using memp) instead of heap, Simon Goldschmidt, 2007/06/13
- [lwip-devel] [task #6863] Create option to use different size pools (using memp) instead of heap, Frédéric Bernon, 2007/06/13
- [lwip-devel] [task #6863] Create option to use different size pools (using memp) instead of heap, Simon Goldschmidt, 2007/06/21
- [lwip-devel] [task #6863] Create option to use different size pools (using memp) instead of heap, Simon Goldschmidt, 2007/06/21