Skip to content

Bug in mbed_alloc_wrappers.cpp #11960

@DBS06

Description

@DBS06

Description of defect

Setting
"platform.heap-stats-enabled": false,
"platform.memory-tracing-enabled": false,
in mbed_app.json does not deactivate tracing in mbed_alloc_wrappers.cpp

Target(s) affected by this defect ?

every target

How is this defect reproduced ?

Set
"platform.heap-stats-enabled": false,
"platform.memory-tracing-enabled": false,
in mbed_app.json.
Compile with debug profile and set a break point i.e. in mbed_alloc_wrappers.cpp inside malloc_wrapper().

Solution:

All
#ifdef MBED_MEM_TRACING_ENABLED
and
#ifdef MBED_HEAP_STATS_ENABLED
should be replaced by:
#if MBED_MEM_TRACING_ENABLED
#if MBED_HEAP_STATS_ENABLED

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions