FMallocBinned

Inheritance Hierarchy

Syntax

class FMallocBinned : public FMalloc

Remarks

Malloc binned allocator specific stats. Optimized virtual memory allocator.

Constructors

Name Description

Public function

FMallocBinned

(
    uint32 InPageSize,
    uint64 AddressLimit
)

FMalloc interface.

Destructors

Name Description

Public function Virtual

~FMallocBinned()

Overridden from FMalloc

Name Description

Public function Virtual

void

 

DumpAllocatorStats

(
    FOutputDevice & Ar
)

Dumps allocator stats to an output device. Subclasses should override to add additional info

Public function Virtual

void

 

Free

(
    void* Ptr
)

Free

Public function Virtual

bool

 

GetAllocationSize

(
    void* Original,
    SIZE_T & SizeOut
)

If possible determine the size of the memory allocated at the given address

true if succeeded

Public function Virtual

void

 

GetAllocatorStats

(
    FGenericMemoryStats & out_Stats
)

Writes allocator stats from the last update into the specified destination.

Public function Virtual

const TCHAR ...

 

GetDescriptiveName()

Gets descriptive name for logging purposes.

pointer to human-readable malloc name

Public function Virtual

void

 

InitializeStatsMetadata()

Initializes stats metadata.

Public function Virtual

bool

 

IsInternallyThreadSafe()

Returns if the allocator is guaranteed to be thread-safe and therefore doesn't need a unnecessary thread-safety wrapper around it.

Public function Virtual

void *

 

Malloc

(
    SIZE_T Size,
    uint32 Alignment
)

Malloc

Public function Virtual

void *

 

Realloc

(
    void* Ptr,
    SIZE_T NewSize,
    uint32 Alignment
)

Realloc

Public function Virtual

void

 

UpdateStats()

Called once per frame, gathers and sets all memory allocator statistics into the corresponding stats.

Public function Virtual

bool

 

ValidateHeap()

Validates the allocator's heap

Classes

Name

Description

Public struct

FFreeMem

============================================================================= MallocBinned.cpp: Binned memory allocator

Public struct

FPoolInfo

Memory pool info. 32 bytes.

Public struct

PoolHashBucket

Hash table struct for retrieving allocation book keeping information

Public struct

Private

Constants

Name

Description

EXTENDED_PAGE_POOL_ALLOCATION_COUNT

Maximum allocation for the pooled allocator

MAX_POOLED_ALLOCATION_SIZE

POOL_COUNT

Counts.

References

Module

Core

Header

Runtime/Core/Public/HAL/MallocBinned.h