Add malloc/free functions to std and use them consistently instead of C malloc #13616
Closed
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
Labels
No labels