Skip to content

Implement AllocRef on System without GlobalAlloc #43

Open

Description

Currently, System as AllocRef calls the GlobalAlloc implementation. GlobalAlloc for System is implemented in std::sys::*::alloc.
I'd like to swap this for two reasons:

  • AllocRef has more methods like grow_in_place. At least dlmalloc supports this.
  • By name, System makes more sense to be implemented in std::sys::*::alloc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-TraitsOther traits beside the Alloc traitProposal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions