Module pool

Module pool 

Source

Structsยง

FairSpillPool
A MemoryPool that prevents spillable reservations from using more than an even fraction of the available memory sans any unspillable reservations (i.e. (pool_size - unspillable_memory) / num_spillable_reservations)
FairSpillPoolState ๐Ÿ”’
GreedyMemoryPool
A MemoryPool that implements a greedy first-come first-serve limit.
TrackConsumersPool
A MemoryPool that tracks the consumers that have reserved memory within the inner memory pool.
TrackedConsumer ๐Ÿ”’
UnboundedMemoryPool
A MemoryPool that enforces no limit

Functionsยง

insufficient_capacity_err ๐Ÿ”’
Constructs a resources error based upon the individual MemoryReservation.
provide_top_memory_consumers_to_error_msg ๐Ÿ”’