Parent Directory
|
Revision Log
| Links to HEAD: | (view) (download) (annotate) |
| Sticky Tag: |
fixed bug #33545: With MEM_USE_POOLS==1, mem_malloc can return an unaligned pointer.
Fixed bug #33544 (warning in mem.c in lwip 1.4.0 with NO_SYS=1)
Fixed compilation for MEM_USE_POOLS under MSVC (where ++ doesn't work for enums)
Fixed compiler warnings when casting where we know the source is aligned (by casting to void-pointer first)
Create mem_mutext at the end of mem_init. This enables sys_mutex_new to use the heap if required.
Renamed mem_realloc() to mem_trim() to prevent confusion with realloc()
Fixed compilation for NO_SYS==1
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)
Fixed compiler warnings when MEM_SIZE < 64000
bug #28659: Missing casts
Fixed bug #28679: mem_realloc calculates mem_stats wrong and added test case for it
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)
Fixed comment on struct mem.prev
Fixed usage of logging levels (bug #27948: Incorrect logging levels used in various places)
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).
mem_free: fix a warning by converting pointer to mem_ptr_t instead of unsigned long
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.
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.
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
* 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.
Minor spelling typos and formatting fixes.
Minor changes in lwip folder: fix some warnings, coding style, and rename "internal" netconn_alloc function.
Added short comment in file description about how to handle MEM_USE_POOLS / MEM_LIBC_MALLOC
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
Fix typo (MEMP_POOL_START/END to FIRST/LAST)
Added some more comments and function documentation
Changed initialization: many init functions are not needed any more since we now rely on the compiler initializing global and static variables to zero!
lfree was not updated in mem_realloc!
Fix bug #21077: inaccuracy in calculation of lwip_stat.mem.used
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.
Task #7136: Centralize mempool settings into new memp_std.h and optional user file lwippools.h.
Minor changes (tabs, ident, coding style...)
Added mem_calloc().
Comments Fix for Doxygen documentation
no-pool-big-enough was not correctly caught
ASSERTS were using old MEM_ALIGN define, therefore, was not compilable without LWIP_NOASSERT defined
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.
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.
Added some comments, better max-size-check, removed Adams original mem_malloc.
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.
Minor fix (tabs)
Aligned MIN_SIZE, memset(0) the complete ram_heap instead of only the used area, only to be on the safe side...
Ooops, checked in the wrong version before :-(
- Changed mem_malloc(): near fit behaves like exact fit since mem->next is always used - Included some more alignment statements - Every malloced block is at least MIN_SIZE big (can be overridden, can be used to work against fragmentation) - Added many comments so that the next developer knows what I was thinking :-)
Fixed 3 typos of the version checked in yesterday...
mem_realloc: Added assert to check that memory is shrinked, not expanded.
Another attempt to fix bug #17922
most of files: prefix all debug.h define with "LWIP_" to avoid any conflict with others environment defines (these were too "generic").
Added MEM_LIBC_MALLOC option as workaround for failing mem_malloc().
Disabled alignment fix. Stepping back, #17922 fix fails on my target, DHCP won't start, I don't understand.
Changed heap to use naturally aligned start address and added near-fit case to #17922 fix.
Removed mem_dump() reference.
Initial attempt at fixing bug #17922, calling for reviewers. This seems to work for me, more or less, but it looks like it breaks TCP.
Remove unused mem_reallocm
Introduced cc.h formatters and removed SO_REUSE from transport layers.
Dependencies on C library memset() etc., so include <string.h>.
Updated copyright years.
added 8-byte alignment for 64-bit architectures
Applied Ian Wienand's patches (4-2-2004). Was partly applied earlier.
Merged from DEVEL, except for the API change in etharp.c.
Applied mem.diff by Ian Wienand on lwip-devel on February 4th 2004. Stops some warnings.
Globally updated the Copyright notices to mention 2004, except for the PPP folder.
Merged from DEVEL into main tree.
Applied patch #1779 (considered a workaround) for bug #2595. Removed all horizontal line seperators as they serve no use.
Use #if not #ifdef for all STATS options. They are turned on off by defining them to 1 or 0. Make use of XXX_STATS_INC macros for udp, ip, tcp, ip_frag, link and icmp. Add IPFRAG_STATS option
Fixed a string literal being wrongly split over two lines.
Changed DEBUGF to LWIP_DEBUGF
Replaced all tabs with two spaces (regardless of indentation is correct).
Overwrote files from main as the merged_from_main_to_STABLE tag was incorrect.
Merged again due to differing two-way differences. No clue why.
Merged from main development tree.
Added spaces between each keyword and opening bracket.
Major stylo search/replace for "One space between keyword and opening bracket."
Stylo.
Merged against HEAD for memory usage stats fix and locking fix.
Made memory stats more accurate (real amount and max amount of memory used). Also fixed a protection bug which occurred when memory allocation failed.
Fixed bug in mem_realloc (check alignment of size)
Added debug levels for some serious errors (out of memory).
byte-order handling functions are in inet.c now and the uperrcase counterparts are gone. opt.h has all the configurable items debug does not need to be directly included.
Add the following features and bugfixes: Added select() functionality to sockets library. Support for errno in sockets library. Byte ordering fixes. basic lwip_ioctl(), FIONREAD, get/setsockopt() etc. support - added additional argument to netif_add to pass state pointer so that the if_init function has access to context information before the interface is added, without accessing globals. - added netif_remove() - to conserve cpu load the tcpip_tcp_timer should only be active when tcbs that need it exist. - pass length of available data to callbacks for NETCONN_EVT_RCV events - added tcpip_link_input(), a hack to allow processing of PPP packets in tcpip_thread() context. This saves threads and context switches. - renamed incompatible ASSERT() macro to LWIP_ASSERT() to avoid name collision. - changed a bunch of %d's to %u's in format strings for unsigned values. - added ip_frag to lwip_stats. - changed IP_REASS_MAXAGE and IP_REASS_TMO defaults to more realistic values. - added sys_timeout_remove() function to cancel timeouts (needed by PPP amongst other things). - tolerate NULL returns from sys_arch_timeouts() since some threads might not need to use or have timeouts. - added sys_sem_wait_timeout() - moved mem_malloc() function to end of mem.c to work around tasking compiler bug. - automatically bind to local tcp port if 0. - allow customization of port ranges for automatic local bindings. - corrected various typos, spelling errors, etc.. Thanks to Marc Boucher for many of these changes.
Added lightweight protection. In coldfire this is implemented by disabling interrupts. In unixsim this is implemented by using a mutex. Uses #define SYS_LIGHTWEIGHT_PROT to enable. It is enabled in coldfire by default, but disabled in unixsim. Fixes bug 2005 if you enable SYS_LIGHTWEIGHT_PROT. So the bug is closed.
Updated lwIP module copyright years to include 2003. Committers must check theirs.
renamed (hopefully everywhere) stats to lwip_stats.closes bug #1901
Removed dummy variable from "struct mem" and handled all MEM_ALIGNMENT cases Fixes bug #1912
use memset and memcpy instead of bzero and bcopy throughout lwIP core code.Archs need to update.Bug #1899
Fix function names in DEBUGF stataments.Remove reference to "reclaimed" field in stat.
Initial import from Adam's 20021017 CVS archive w/ modified license.
Initial revision
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.
| savannah-hackers-public@gnu.org | ViewVC Help |
| Powered by ViewVC 1.1.26 |