esp-lwip icon indicating copy to clipboard operation
esp-lwip copied to clipboard

Added MEMP_MEM_MALLOC_CHECK_MAX option

Open martinKupec opened this issue 1 year ago • 0 comments

This option adds functionality to enforce max memory usage in the same way it is enforced by standard memory pool allocator.

Everything is #if guarded by MEMP_MEM_MALLOC_CHECK_MAX which is disabled by default.

During testing we have found some problem with LWIP_NUM_SYS_TIMEOUT_INTERNAL, as there are missing few chunks for timers. On the other hand, this makes options like CONFIG_LWIP_MAX_ACTIVE_TCP work. In general it puts to work all MEMP_NUM_* options which do nothing in current state.

Adding MEMP_MEM_MALLOC_CHECK_MAX to lwipopts.h file in IDF repository is needed to make this change effective. This can be done through config option.

martinKupec avatar Nov 15 '23 12:11 martinKupec