Navigation
Unreal Engine C++ API Reference > Runtime > Core > HAL
Inheritance Hierarchy
- FUseSystemMallocForNew
- FExec
- FMalloc
- FMallocBinned
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/HAL/MallocBinned.h |
Include | #include "HAL/MallocBinned.h" |
Syntax
class FMallocBinned : public FMalloc
Remarks
Malloc binned allocator specific stats. Optimized virtual memory allocator.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FMallocBinned
(
uint32 InPageSize, |
InPageSize - First parameter is page size, all allocs from BinnedAllocFromOS() MUST be aligned to this size AddressLimit - Second parameter is estimate of the range of addresses expected to be returns by BinnedAllocFromOS(). |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Overridden from FMalloc
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | DumpAllocatorStats
(
FOutputDevice& Ar |
Dumps allocator stats to an output device. Subclasses should override to add additional info |
![]() ![]() |
void | Free
(
void* Ptr |
Free |
![]() ![]() |
bool | GetAllocationSize
(
void* Original, |
If possible determine the size of the memory allocated at the given address |
![]() ![]() |
void | GetAllocatorStats
(
FGenericMemoryStats& out_Stats |
Writes allocator stats from the last update into the specified destination. |
![]() ![]() |
const TCHAR * | Gets descriptive name for logging purposes. | |
![]() ![]() |
void | Initializes stats metadata. | |
![]() ![]() ![]() |
bool | Returns if the allocator is guaranteed to be thread-safe and therefore doesn't need a unnecessary thread-safety wrapper around it. | |
![]() ![]() |
void * | Malloc
(
SIZE_T Size, |
Malloc |
![]() ![]() |
SIZE_T | QuantizeSize
(
SIZE_T Count, |
For some allocators this will return the actual size that should be requested to eliminate internal fragmentation. |
![]() ![]() |
void * | Realloc
(
void* Ptr, |
Realloc |
![]() ![]() |
void | UpdateStats () |
Called once per frame, gathers and sets all memory allocator statistics into the corresponding stats. |
![]() ![]() |
bool | ValidateHeap () |
Validates the allocator's heap |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FFreeMem | Information about a piece of free memory. 16 bytes | |
![]() |
FPoolInfo | ||
![]() |
PoolHashBucket | Hash table struct for retrieving allocation book keeping information | |
![]() |
Private |
Constants
Name | Description |
---|---|
EXTENDED_PAGE_POOL_ALLOCATION_COUNT | Maximum allocation for the pooled allocator |
MAX_POOLED_ALLOCATION_SIZE | |
POOL_COUNT | Counts. |