goldsimon
|
b401f42520
|
minor: fixed coding style (lwip style)
|
2015-10-07 10:03:12 +02:00 |
|
sg
|
2b971400fa
|
minor: coding style
|
2015-10-06 21:57:40 +02:00 |
|
sg
|
490581a0eb
|
minor/coding style: removed spaces before line ending
|
2015-10-06 21:08:28 +02:00 |
|
goldsimon
|
0ff98eb2f5
|
mem: added an MEMP_OVERFLOW_CHECK implementation for MEM_USE_POOLS; added another unit test
|
2014-12-10 09:48:50 +01:00 |
|
goldsimon
|
ec93b03d8d
|
Fixed multiple smaller compiler warnings
|
2014-11-07 14:29:53 +01:00 |
|
Simon Goldschmidt
|
33237419c1
|
Parts of patch #8397 Typos corrected in comments and text outputs
|
2014-09-18 21:15:13 +02:00 |
|
goldsimon
|
c5203ab5ea
|
fixed bug #34429: possible memory corruption with LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT set to 1
|
2011-10-23 17:31:03 +02:00 |
|
goldsimon
|
4002aef594
|
fixed bug #33545: With MEM_USE_POOLS==1, mem_malloc can return an unaligned pointer.
|
2011-06-26 17:31:10 +00:00 |
|
goldsimon
|
ba28d36e67
|
Fixed bug #33544 (warning in mem.c in lwip 1.4.0 with NO_SYS=1)
|
2011-06-26 17:13:57 +00:00 |
|
goldsimon
|
5d153ca1b3
|
Fixed compilation for MEM_USE_POOLS under MSVC (where ++ doesn't work for enums)
|
2010-03-22 08:38:28 +00:00 |
|
goldsimon
|
7466474365
|
Fixed compiler warnings when casting where we know the source is aligned (by casting to void-pointer first)
|
2010-03-15 10:44:19 +00:00 |
|
goldsimon
|
9e37d70163
|
Create mem_mutext at the end of mem_init. This enables sys_mutex_new to use the heap if required.
|
2010-03-07 16:50:08 +00:00 |
|
goldsimon
|
52970c2459
|
Renamed mem_realloc() to mem_trim() to prevent confusion with realloc()
|
2010-02-19 16:23:46 +00:00 |
|
goldsimon
|
3529349470
|
Fixed compilation for NO_SYS==1
|
2010-02-12 13:56:51 +00:00 |
|
goldsimon
|
0030d1ade5
|
task #10139 (Prefer statically allocated memory): converted mbox and semaphore functions to take pointers to sys_mbox_t/sys_sem_t; converted sys_mbox_new/sys_sem_new to take pointers and return err_t; task #7212: Add Mutex concept in sys_arch (define LWIP_COMPAT_MUTEX to let sys.h use binary semaphores instead of mutexes - as before)
|
2010-02-12 13:49:21 +00:00 |
|
goldsimon
|
9ff7d29696
|
Fixed compiler warnings when MEM_SIZE < 64000
|
2010-02-02 20:14:05 +00:00 |
|
goldsimon
|
e678e1bdcb
|
bug #28659: Missing casts
|
2010-01-25 08:24:30 +00:00 |
|
goldsimon
|
e0c5c4de88
|
Fixed bug #28679: mem_realloc calculates mem_stats wrong and added test case for it
|
2010-01-18 17:45:41 +00:00 |
|
goldsimon
|
8596bb7e7e
|
The heap now may be moved to user-defined memory by defining LWIP_RAM_HEAP_POINTER as a void pointer to that memory's address (patch #6966 and bug #26133)
|
2010-01-13 13:09:55 +00:00 |
|
goldsimon
|
47e770dffa
|
Fixed comment on struct mem.prev
|
2010-01-11 09:49:31 +00:00 |
|
goldsimon
|
f4c0655190
|
Fixed usage of logging levels (bug #27948: Incorrect logging levels used in various places)
|
2009-11-22 15:14:46 +00:00 |
|
goldsimon
|
cbfacb7ed9
|
bug #26213 "Problem with memory allocation when debugging": memp_sizes contained the wrong sizes (including sanity regions); memp pools for MEM_USE_POOLS were too small; Added option MEM_USE_POOLS_TRY_BIGGER_POOL to try the next bigger malloc pool if one is empty (only usable with MEM_USE_POOLS).
|
2009-04-25 17:42:27 +00:00 |
|
goldsimon
|
103fe60362
|
mem_free: fix a warning by converting pointer to mem_ptr_t instead of unsigned long
|
2009-02-18 20:42:16 +00:00 |
|
goldsimon
|
13d8ae859d
|
fixed bug #21433: Calling mem_free/pbuf_free from interrupt context isn't safe: LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT allows mem_free to run between mem_malloc iterations. Added illegal counter for mem stats.
|
2008-06-30 18:16:51 +00:00 |
|
goldsimon
|
779938ea68
|
patch #6483: stats module improvement: Added defines to display each module's statistic individually, added stats defines for MEM, MEMP and SYS modules, removed (unused) rexmit counter.
|
2008-06-27 18:37:53 +00:00 |
|
goldsimon
|
43dd38df0a
|
fixed bug #21433 (Calling mem_free/pbuf_free from interrupt context isn't safe): set LWIP_USE_HEAP_FROM_INTERRUPT to 1 in lwipopts.h or use tcpip_callback_nonblocking(pbuf_free_int, p)/ tcpip_callback_nonblocking(mem_free, m) to free pbufs or heap memory from interrupt context
|
2008-03-27 19:29:35 +00:00 |
|
jifl
|
30d4c243ec
|
* mem.c, stats.c, mem.h: apply patch #6414 to avoid compiler errors
and/or warnings on some systems where mem_size_t and size_t differ.
|
2008-03-04 16:31:31 +00:00 |
|
jifl
|
886cfbe12d
|
Minor spelling typos and formatting fixes.
|
2008-01-11 14:28:58 +00:00 |
|
fbernon
|
9c4daa312d
|
Minor changes in lwip folder: fix some warnings, coding style, and rename "internal" netconn_alloc function.
|
2008-01-04 23:07:44 +00:00 |
|
goldsimon
|
22f51f953b
|
Added short comment in file description about how to handle MEM_USE_POOLS / MEM_LIBC_MALLOC
|
2007-12-03 18:01:28 +00:00 |
|
goldsimon
|
6e612e5def
|
mem_malloc with MEM_USE_POOLS=1: if size > size of biggest pool and custom pools (in addition to the MEM_POOLs) were defined, the first custom pool was used instead of asserting
|
2007-11-28 18:24:08 +00:00 |
|
jgrubb
|
472407c719
|
Fix typo (MEMP_POOL_START/END to FIRST/LAST)
|
2007-11-28 17:19:15 +00:00 |
|
goldsimon
|
be0686d905
|
Added some more comments and function documentation
|
2007-11-25 10:01:22 +00:00 |
|
goldsimon
|
199648ff37
|
Changed initialization: many init functions are not needed any more since we now rely on the compiler initializing global and static variables to zero!
|
2007-10-09 19:59:56 +00:00 |
|
goldsimon
|
9ef005454a
|
lfree was not updated in mem_realloc!
|
2007-10-08 18:39:44 +00:00 |
|
kleshov
|
93c487fb75
|
Fix bug #21077: inaccuracy in calculation of lwip_stat.mem.used
|
2007-09-15 11:34:06 +00:00 |
|
fbernon
|
e3cd1ac1f9
|
Minor changes (but in lot of files): add #if/#endif for options where they could miss. #if LWIP_xxx if always put after #include "lwip/opt.h" (note this one indirectly include cc.h). Move others includes inside #if/#endif block.
|
2007-09-07 23:01:59 +00:00 |
|
jgrubb
|
cc7d1226ee
|
Task #7136: Centralize mempool settings into new memp_std.h and optional user file lwippools.h.
|
2007-08-17 17:49:17 +00:00 |
|
fbernon
|
2be122875a
|
Minor changes (tabs, ident, coding style...)
|
2007-08-17 00:30:27 +00:00 |
|
marcbou
|
95cbf95c50
|
Added mem_calloc().
|
2007-08-16 18:37:15 +00:00 |
|
fbernon
|
9152d6671c
|
Comments Fix for Doxygen documentation
|
2007-08-09 22:21:44 +00:00 |
|
goldsimon
|
786a7fbaf4
|
no-pool-big-enough was not correctly caught
|
2007-06-22 20:26:30 +00:00 |
|
goldsimon
|
0ce27296aa
|
ASSERTS were using old MEM_ALIGN define, therefore, was not compilable without LWIP_NOASSERT defined
|
2007-06-22 20:23:26 +00:00 |
|
goldsimon
|
0c18e653e8
|
Introduced the option MEM_USE_POOLS to use 4 pools with different sized elements instead of a heap. This both prevents memory fragmentation and gives a higher speed at the cost of more memory consumption. Turned off by default.
|
2007-06-21 20:12:11 +00:00 |
|
fbernon
|
bdbc96f453
|
opt.h, mem.h, mem.c, memp.c, pbuf.c, ip_frag.c, vj.c: Fix bug #20162. Rename MEM_ALIGN in LWIP_MEM_ALIGN and MEM_ALIGN_SIZE in LWIP_MEM_ALIGN_SIZE to avoid some macro names collision with some OS macros.
|
2007-06-13 17:17:26 +00:00 |
|
goldsimon
|
78201c0146
|
Added some comments, better max-size-check, removed Adams original mem_malloc.
|
2007-05-22 19:38:12 +00:00 |
|
goldsimon
|
fd982597fe
|
Removed semaphores from memp, changed sys_sem_wait calls into sys_arch_sem_wait calls to prevent timers from running while waiting for the heap. This fixes bug #19167.
|
2007-05-16 11:02:07 +00:00 |
|
fbernon
|
4e71ec4480
|
Minor fix (tabs)
|
2007-05-15 16:34:30 +00:00 |
|
goldsimon
|
8ef712787a
|
Aligned MIN_SIZE, memset(0) the complete ram_heap instead of only the used area, only to be on the safe side...
|
2007-05-15 10:35:48 +00:00 |
|
goldsimon
|
ab4993fda2
|
Ooops, checked in the wrong version before :-(
|
2007-05-11 19:42:50 +00:00 |
|