MemoryPoolZone

final class MemoryPoolZone(pool: MemoryPool) extends Zone

An optimized implementation of a zone that performs all allocations sequentially in pages that are claimed from memory pool. Larger allocations are allocated using the system allocator and persisted in an array buffer.

trait Zone
class Object
trait Matchable
class Any

Value members

Concrete methods

override def alloc(usize: CSize): Ptr[Byte]
Definition Classes
def alloc(size: CSize, alignment: CSize): Ptr[Byte]
override def close(): Unit
Definition Classes
override def isClosed: Boolean
Definition Classes
override def isOpen: Boolean
Definition Classes

Inherited methods

def alloc(size: ULong): Ptr[Byte]

Allocates memory of given size.

Allocates memory of given size.

Inherited from:
Zone
def alloc(size: UInt): Ptr[Byte]

Allocates memory of given size.

Allocates memory of given size.

Inherited from:
Zone
def alloc(size: Int): Ptr[Byte]

Allocates memory of given size.

Allocates memory of given size.

Inherited from:
Zone