Navigation
API > API/Runtime > API/Runtime/Core
| Name | TMallocBinnedCommon |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/HAL/MallocBinnedCommon.h |
| Include Path | #include "HAL/MallocBinnedCommon.h" |
Syntax
template<class AllocType, int NumSmallPools, int MaxSmallPoolSize>
class TMallocBinnedCommon : public FMallocBinnedCommonBase
Inheritance Hierarchy
- FExec → FMalloc → FMallocBinnedCommonBase → TMallocBinnedCommon
- FUseSystemMallocForNew → FMalloc → FMallocBinnedCommonBase → TMallocBinnedCommon
Derived Classes
Structs
| Name | Remarks |
|---|---|
| FPerThreadFreeBlockLists | |
| FPoolHashBucket | Hash table struct for retrieving allocation book keeping information |
| Internal |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| MAX_SMALL_POOL_SIZE | int | HAL/MallocBinnedCommon.h | |
| NUM_SMALL_POOLS | int | HAL/MallocBinnedCommon.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| HashBucketFreeList | FPoolHashBucket * | HAL/MallocBinnedCommon.h | ||
| HashBuckets | FPoolHashBucket * | HAL/MallocBinnedCommon.h |
Functions
Public
Overridden from FMalloc
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void GetAllocatorStats
(
FGenericMemoryStats& out_Stats |
Writes allocator stats from the last update into the specified destination. | HAL/MallocBinnedCommon.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AllocateHashBuckets() |
HAL/MallocBinnedCommon.h | ||
uint32 BoundSizeToPoolIndex
(
SIZE_T Size, |
HAL/MallocBinnedCommon.h | ||
bool GetAllocationSizeExternal
(
void* Ptr, |
HAL/MallocBinnedCommon.h | ||
int64 GetTotalAllocatedSmallPoolMemory() |
HAL/MallocBinnedCommon.h | ||
bool PromoteToLargerBin
(
SIZE_T& Size, |
HAL/MallocBinnedCommon.h | ||
SIZE_T QuantizeSizeCommon
(
SIZE_T Count, |
HAL/MallocBinnedCommon.h | ||
void UpdateStatsCommon
(
const AllocType& Alloc |
HAL/MallocBinnedCommon.h |
Overridden from FMalloc
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ClearAndDisableTLSCachesOnCurrentThread() |
Clears the TLS caches on the current thread and disables any future caching. | HAL/MallocBinnedCommon.h | |
virtual void MarkTLSCachesAsUnusedOnCurrentThread () |
Mark TLS caches for current thread as unused. | HAL/MallocBinnedCommon.h | |
virtual void MarkTLSCachesAsUsedOnCurrentThread () |
Mark TLS caches for the current thread as used. | HAL/MallocBinnedCommon.h | |
virtual void SetupTLSCachesOnCurrentThread() |
Set up TLS caches on the current thread. These are the threads that we can trim. | HAL/MallocBinnedCommon.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static UE::FPlatformRecursiveMutex & GetFreeBlockListsRegistrationMutex() |
HAL/MallocBinnedCommon.h | ||
static TArray< FPerThreadFreeBlockLists * > & GetRegisteredFreeBlockLists() |
HAL/MallocBinnedCommon.h | ||
static void RegisterThreadFreeBlockLists
(
FPerThreadFreeBlockLists* FreeBlockLists |
HAL/MallocBinnedCommon.h | ||
static void UnregisterThreadFreeBlockLists
(
FPerThreadFreeBlockLists* FreeBlockLists |
HAL/MallocBinnedCommon.h |