Skip to content

Add a per-target way for specifying the buffer size for the freelist heap allocator #95589

@PiJoules

Description

@PiJoules

Right now, the freelist allocator just assumes 1GB of storage for a buffer size. We should come up with a smarter way of selecting this. For tests on linux, this is valid enough to assert we can allocate enough for tests, but for embedded devices where this will likely be used initially. We have a hole where uses can specify the LIBC_FREELIST_MALLOC_SIZE macro at build time, but for default configs, it would be nice to have something similar to what scudo or sanitizer allocators have.

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