Skip to content

Tracking issue for alloc_system/alloc_jemalloc #33082

Closed
@alexcrichton

Description

@alexcrichton

Introduced in RFC 1183 these two crates lie underneath the facade with their tracking issue hooked up to #27783. I'd like to open a separate issue for just these two crates.

We have a request in Gecko to stabilize the ability to route allocations to specifically malloc (on all platforms). This includes Windows, where currently alloc_system routes to functions like HeapAlloc.

Essentially, one of these crates, or perhaps a new crate like them, may want to have an accelerated path to stabilization before allocators themselves. For example I wouldn't want to stabilize #![allocator] or #![needs_allocator], but we could stabilize the semantics of extern crate alloc_malloc redirects all allocations to malloc (for example).

Nominating for discussion!

cc @rust-lang/libs
cc @froydnj

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-unstableBlocker: Implemented in the nightly compiler and unstable.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