Pool for reducing GC allocations 更多...
#include <FastReferenceCollector.h>
Public 成员函数 | |
| void | Cleanup () |
| Performs manual memory cleanup. 更多... | |
| void | ClearWeakReferences (bool bClearPools) |
| Clears weak references for everything in the pool. 更多... | |
| FORCEINLINE FGCArrayStruct * | GetArrayStructFromPool () |
| Gets an event from the pool or creates one if necessary. 更多... | |
| FORCEINLINE void | ReturnToPool (FGCArrayStruct *ArrayStruct) |
| Returns an array to the pool. 更多... | |
静态 Public 成员函数 | |
| static void | DumpStats (FOutputDevice &OutputDevice) |
| Writes out info about the makeup of the pool. 更多... | |
| static FORCEINLINE FGCArrayPool & | Get () |
| Gets the singleton instance of the FObjectArrayPool 更多... | |
Pool for reducing GC allocations
|
inline |
Performs manual memory cleanup.
Generally the pools will be cleaned up when ClearWeakReferences is called on a full GC purge
|
inline |
Clears weak references for everything in the pool.
If bClearPools is true it will clear all of the pools as well, which is used during a full purge
|
inlinestatic |
Writes out info about the makeup of the pool.
called by 'gc.DumpPoolStats'
| Array | The array to return. |
|
inlinestatic |
Gets the singleton instance of the FObjectArrayPool
|
inline |
|
inline |
Returns an array to the pool.
| Array | The array to return. |