-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Documentation states that
Currently the default global allocator is unspecified. Libraries, however, like cdylibs and staticlibs are guaranteed to use the System by default.
and it also states that
This type implements the GlobalAlloc trait and Rust programs by default work as if they had this definition:
use std::alloc::System; #[global_allocator] static A: System = System;
These two statements directly contradict each other -- one says that System
is the default everywhere, one says that that is not specified. Which one should it be? :)
FWIW Miri currently considers it a bug to create an allocation with the default global allocator and then free it with System
, matching the first bit of documentation, but contradicting the second.
Metadata
Metadata
Assignees
Labels
No labels