Skip to content

Add malloc/free functions to std and use them consistently instead of C malloc #13616

Closed
@brson

Description

These malloc/free would be guaranteed to allocate from Rusts heap. This isn't a big deal now but someday we'll have our own allocator and the existing calls to C malloc are going to create "dark" pools of memory that can't be instrumented like other Rust allocations and could potentially lead to other bugs.

@thestinger What do you think?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions