Skip to content

Conversation

@DvdGiessen
Copy link
Contributor

If the heap allocation fails we will crash if we continue, so at least we can show a clear error message so one can figure out memory allocation was the problem (instead of just seeing some arbitrary null pointer error later).

If the heap allocation fails we will crash if we continue, so at least we
can show a clear error message so one can figure out memory allocation was
the problem (instead of just seeing some arbitrary null pointer error
later).

Signed-off-by: Daniël van de Giessen <daniel@dvdgiessen.nl>
@dpgeorge dpgeorge force-pushed the esp32_check_heap_alloc branch from 58023f6 to a0efe2d Compare March 25, 2024 01:22
@dpgeorge dpgeorge merged commit a0efe2d into micropython:master Mar 25, 2024
@dpgeorge
Copy link
Member

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants