Skip to content

MemoryPool: using hard defined mem pool size #9119

Closed
@0xc0170

Description

@0xc0170

Description

MemoryPool object contains this currently: char _pool_mem[((sizeof(T) + 3) & ~3) * pool_sz];

As we recently found out (reported by @embeddedteam103, see ARM-software/CMSIS_5#479) this calculation is not portable.

rtx_os.h defines osRtxMemoryPoolMemSize that we can use instead. Add the calculation to our mbed_os_storage_rtos header file.

cc @kjbracey-arm @c1728p9

Issue request type

[ ] Question
[ ] Enhancement
[X] Bug

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