Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/HAL
Inheritance Hierarchy
- FUseSystemMallocForNew
- FExec
- FMalloc
- FMallocThreadSafeProxy
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/HAL/MallocThreadSafeProxy.h |
| Include | #include "HAL/MallocThreadSafeProxy.h" |
Syntax
class FMallocThreadSafeProxy : public FMalloc
Remarks
FMalloc proxy that synchronizes access, making the used malloc thread safe.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FMallocThreadSafeProxy
(
FMalloc* InMalloc |
Constructor for thread safe proxy malloc that takes a malloc to be used and a synchronization object used via FScopeLock as a parameter. |
Overridden from FMalloc
| Type | Name | Description | |
|---|---|---|---|
| void | DumpAllocatorStats
(
FOutputDevice& Ar |
Dumps allocator stats to an output device. | |
| 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 | |
| void | Notifies the malloc implementation that initialization of all allocators in GMalloc is complete, so it's safe to initialize any extra features that require "regular" allocations | ||
| void | OnPostFork () |
Notifies the malloc implementation that the process has forked so we can try and avoid dirtying pre-fork pages. | |
| void | OnPreFork () |
Notifies the malloc implementation that the process is about to fork. | |
| void * | Realloc
(
void* Ptr, |
Realloc | |
| void | Trim
(
bool bTrimThreadCaches |
Releases as much memory as possible. Must be called from the main thread. | |
| bool | ValidateHeap () |
Validates the allocator's heap |