Private

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Private/HAL/MallocBinned.cpp

Include

#include "HAL/MallocBinned.cpp"

Syntax

struct Private

Functions

Name Description

Public function Static

FFreeMem ...

 

AllocateBlockFromPool

(
    FMallocBinned& Allocator,
    FPoolTable* Table,
    FPoolInfo* Pool,
    uint32 Alignment
)

Public function Static

PoolHashBuck...

 

AllocateHashBucket

(
    FMallocBinned& Allocator
)

Allocates a hash bucket from the free list of hash buckets

Public function Static

FPoolInfo &#...

 

AllocatePoolMemory

(
    FMallocBinned& Allocator,
    FPoolTable* Table,
    uint32 PoolSize,
    uint16 TableIndex
)

Public function Static

PoolHashBuck...

 

CreateHashBucket

(
    FMallocBinned& Allocator
)

Returns a newly created and initialized PoolHashBucket for use.

Public function Static

PoolHashBuck...

 

CreateHashBuckets

(
    const FMallocBinned& Allocator
)

Initializes tables for HashBuckets if they haven't already been initialized.

Public function Static

FPoolInfo &#...

 

CreateIndirect

(
    FMallocBinned& Allocator
)

Create a 64k page of FPoolInfo structures for tracking allocations

Public function Static

FPoolInfo &#...

 

FindPoolInfo

(
    FMallocBinned& Allocator,
    UPTRINT Ptr1,
    UPTRINT& AllocationBase
)

Public function Static

FPoolInfo &#...

 

FindPoolInfoInternal

(
    FMallocBinned& Allocator,
    UPTRINT Ptr,
    uint16& JumpOffset
)

Public function Static

void

 

FlushPendingFrees

(
    FMallocBinned& Allocator
)

Clear and Process the list of frees to be deallocated.

Public function Static

void

 

FreeInternal

(
    FMallocBinned& Allocator,
    void* Ptr
)

Releases memory back to the system.

Public function Static

FPoolInfo &#...

 

GetPoolInfo

(
    FMallocBinned& Allocator,
    UPTRINT Ptr
)

Gets the FPoolInfo for a memory address.

Public function Static

void

 

InitializeHashBucket

(
    FMallocBinned& Allocator,
    PoolHashBucket* Bucket
)

Initializes bucket with valid parameters

Public function Static

void *

 

OSAlloc

(
    FMallocBinned& Allocator,
    SIZE_T NewSize,
    SIZE_T& OutActualSize
)

Public function Static

void

 

OSFree

(
    FMallocBinned& Allocator,
    void* Ptr,
    SIZE_T Size
)

Public function Static

void

 

OutOfMemory

(
    uint64 Size,
    uint32 Alignment
)

Public function Static

void

 

PushFreeLockless

(
    FMallocBinned& Allocator,
    void* Ptr
)

Public function Static

void *

 

SmallOSAlloc

(
    FMallocBinned& Allocator,
    SIZE_T NewSize,
    SIZE_T& OutActualSize
)

Public function Static

void

 

SmallOSFree

(
    FMallocBinned& Allocator,
    void* Ptr,
    SIZE_T Size
)

Public function Static

void

 

TrackStats

(
    FPoolTable* Table,
    uint32 Size
)

Public function Static

void

 

UpdateSlackStat

(
    FMallocBinned& Allocator
)

Constants

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss