| FUseSystemMallocForNew | ||||
| FExec
|
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/HAL/MallocPoisonProxy.h |
Include |
#include "HAL/MallocPoisonProxy.h" |
class FMallocPoisonProxy : public FMalloc
FMalloc proxy that poisons new and freed allocations, helping to catch code that relies on uninitialized or freed memory.
Name | Description | |
---|---|---|
|
FMallocPoisonProxy ( |
Name | Description | ||
---|---|---|---|
|
ClearAndDisableTLSCachesOnCurrentThread() |
Clears the TLS caches on the current thread and disables any future caching. |
|
|
DumpAllocatorStats ( |
Dumps current allocator stats to the log. |
|
|
Free ( |
Free |
|
|
GetAllocationSize |
If possible determine the size of the memory allocated at the given address |
|
|
GetAllocatorStats ( |
Writes allocator stats from the last update into the specified destination. |
|
|
const TCHAR ... |
GetDescriptiveName() |
Gets descriptive name for logging purposes. |
|
InitializeStatsMetadata() |
Initializes stats metadata. |
|
|
IsInternallyThreadSafe() |
Returns if the allocator is guaranteed to be thread-safe and therefore doesn't need a unnecessary thread-safety wrapper around it. |
|
|
void * |
Malloc |
Malloc |
|
QuantizeSize |
For some allocators this will return the actual size that should be requested to eliminate internal fragmentation. |
|
|
void * |
Realloc |
Realloc |
|
SetupTLSCachesOnCurrentThread() |
Set up TLS caches on the current thread. These are the threads that we can trim. |
|
|
Trim ( |
Releases as much memory as possible. Must be called from the main thread. |
|
|
UpdateStats() |
Called once per frame, gathers and sets all memory allocator statistics into the corresponding stats. |
|
|
ValidateHeap() |
Validates the allocator's heap |
Name | Description | ||
---|---|---|---|
|
Exec ( |
Handles any commands passed in on the command line |