Skip to content

Introduce liballoc::actual_usable_size #32075

@nox

Description

@nox

In Servo we use heapsize to be able to report about heap memory usage. It would be way more robust if heapsize's function heap_size_of were in liballoc itself.

Probably that function should be parameterised by T instead of taking a *mut c_void, to handle alignment without relying on HeapValidate on Windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions