Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added MEMP_MEM_MALLOC_CHECK_MAX option #63

Open
wants to merge 1 commit into
base: 2.1.3-esp-dev
Choose a base branch
from

Conversation

martinKupec
Copy link

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.

This option adds functionality to enforce max memory usage
in the same way it is enforced by standard memory pool allocator.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant