pico_malloc.c doesn't include pico/malloc.h #136

Closed
opened 2021-02-16 05:39:38 -06:00 by geurtv · 3 comments
geurtv commented 2021-02-16 05:39:38 -06:00 (Migrated from github.com)

pico_malloc.c doesn't include pico/malloc.h (directly or indirectly). This means PICO_USE_MALLOC_MUTEX will always be 0 even with pico_multicore and PICO_MALLOC_PANIC now defaults to 0 instead of 1.

pico_malloc.c doesn't include pico/malloc.h (directly or indirectly). This means PICO_USE_MALLOC_MUTEX will always be 0 even with pico_multicore and PICO_MALLOC_PANIC now defaults to 0 instead of 1.
geurtv commented 2021-02-16 06:36:44 -06:00 (Migrated from github.com)

Additionally in pico_malloc.c, when pico/malloc.h is included PICO_DEBUG_MALLOC is always on because

#ifdef PICO_DEBUG_MALLOC

is used instead of

#if PICO_DEBUG_MALLOC

Additionally in pico_malloc.c, when pico/malloc.h is included PICO_DEBUG_MALLOC is always on because > `#ifdef PICO_DEBUG_MALLOC` is used instead of > `#if PICO_DEBUG_MALLOC`
kilograham commented 2021-02-16 07:51:02 -06:00 (Migrated from github.com)

Spooky; i just noticed this last night!

Spooky; i just noticed this last night!
kilograham commented 2021-02-18 11:47:30 -06:00 (Migrated from github.com)

merged to develop

merged to develop
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-raspberrypi/pico-sdk#136
No description provided.