| FUseSystemMallocForNew | ||||
| FExec
|
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/HAL/MallocDoubleFreeFinder.h |
Include |
#include "HAL/MallocDoubleFreeFinder.h" |
class FMallocDoubleFreeFinder : public FMalloc
Name | Description | ||
---|---|---|---|
|
CallStackInfoArray |
||
|
CallStackMapKeyToCallStackIndexMap |
||
|
CriticalSection |
||
|
DisabledTLS |
||
|
RWLock |
||
|
TrackedCurrentAllocations |
||
|
TrackedFreeAllocations |
Name | Description | |
---|---|---|
|
FMallocDoubleFreeFinder ( |
Name | Description | ||
---|---|---|---|
|
DecDisabled() |
||
|
DumpStackTraceToLog ( |
||
|
GetCallStackIndex() |
||
|
IncDisabled() |
||
|
Init() |
||
|
IsDisabled() |
||
|
FMalloc *... |
OverrideIfEnabled ( |
|
|
TrackFree |
||
|
TrackMalloc |
||
|
TrackRealloc |
||
|
TrackSpecial ( |
If you get an allocation/memory error outside of the allocator you can call this directly It will dump a callstack of the last allocator free most likely to have caused the problem to the log, if you have symbols loaded Might be useful to pass an access violation ptr to this! |
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 |
Name |
Description |
|
---|---|---|
|
FCallStackInfoDoublleFreeFinder |
|
|
FCallStackMapKey |
Used as a key in our current allocations/freed allocations maps |
|
TrackedAllocationData |