Lines Matching full:allocator
21 // These are the magic symbols to call the global allocator. rustc generates
44 /// The global memory allocator.
46 /// This type implements the [`Allocator`] trait by forwarding calls
47 /// to the allocator registered with the `#[global_allocator]` attribute
60 /// Allocate memory with the global allocator.
63 /// of the allocator registered with the `#[global_allocator]` attribute
67 /// of the [`Global`] type when it and the [`Allocator`] trait become stable.
96 // Make sure we don't accidentally allow omitting the allocator shim in in alloc()
104 /// Deallocate memory with the global allocator.
107 /// of the allocator registered with the `#[global_allocator]` attribute
111 /// of the [`Global`] type when it and the [`Allocator`] trait become stable.
122 /// Reallocate memory with the global allocator.
125 /// of the allocator registered with the `#[global_allocator]` attribute
129 /// of the [`Global`] type when it and the [`Allocator`] trait become stable.
141 /// Allocate zero-initialized memory with the global allocator.
144 /// of the allocator registered with the `#[global_allocator]` attribute
148 /// of the [`Global`] type when it and the [`Allocator`] trait become stable.
190 // SAFETY: Same as `Allocator::grow`
240 unsafe impl Allocator for Global {
326 /// The allocator for unique pointers.