Crate solana_allocator

Source
Expand description

Custom global allocator which doesn’t assume 32 KiB heap size.

Default Solana allocator assumes there’s only 32 KiB of available heap space. Since heap size can be changed per-transaction, this assumption is not always accurate. This module defines a global allocator which doesn’t assume size of available space.

Macros§

custom_global
On Solana, defines BumpAllocator as the global allocator with given global state.
custom_heap
On Solana, defines BumpAllocator as the global allocator.