![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <MallocThreadSafeProxy.h>
Inheritance diagram for FMallocThreadSafeProxy:Additional Inherited Members | |
Static Public Attributes inherited from FMalloc | |
| static CORE_API TAtomic< uint64 > | MaxSingleAlloc |
Protected Member Functions inherited from FExec | |
| virtual bool | Exec_Runtime (UWorld *InWorld, const TCHAR *Cmd, FOutputDevice &Ar) |
| virtual bool | Exec_Dev (UWorld *InWorld, const TCHAR *Cmd, FOutputDevice &Ar) |
| virtual bool | Exec_Editor (UWorld *InWorld, const TCHAR *Cmd, FOutputDevice &Ar) |
FMalloc proxy that synchronizes access, making the used malloc thread safe.
|
inline |
Constructor for thread safe proxy malloc that takes a malloc to be used and a synchronization object used via FScopeLock as a parameter.
| InMalloc | FMalloc that is going to be used for actual allocations |
|
inlineoverridevirtual |
Dumps allocator stats to an output device.
Reimplemented from FMalloc.
Free
Implements FMalloc.
|
inlineoverridevirtual |
If possible determine the size of the memory allocated at the given address
| Original | - Pointer to memory we are checking the size of |
| SizeOut | - If possible, this value is set to the size of the passed in pointer |
Reimplemented from FMalloc.
|
inlineoverridevirtual |
Writes allocator stats from the last update into the specified destination.
Reimplemented from FMalloc.
Gets descriptive name for logging purposes.
Reimplemented from FMalloc.
Initializes stats metadata. We need to do this as soon as possible, but cannot be done in the constructor due to the FName::StaticInit
Reimplemented from FMalloc.
Returns if the allocator is guaranteed to be thread-safe and therefore doesn't need a unnecessary thread-safety wrapper around it.
Reimplemented from FMalloc.
|
inlineoverridevirtual |
Malloc
Implements FMalloc.
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
Reimplemented from FMalloc.
Notifies the malloc implementation that the process has forked so we can try and avoid dirtying pre-fork pages.
Reimplemented from FMalloc.
Notifies the malloc implementation that the process is about to fork. May be used to trim caches etc.
Reimplemented from FMalloc.
|
inlineoverridevirtual |
Realloc
Implements FMalloc.
Releases as much memory as possible. Must be called from the main thread.
Reimplemented from FMalloc.
Validates the allocator's heap
Reimplemented from FMalloc.