Trim Low level allocator memory when OS might go into OOM

[REVIEW] [at]rob.millar
[FYI] dave.barrett
#rnx

#ROBOMERGE-OWNER: mickael.gilabert
#ROBOMERGE-AUTHOR: mickael.gilabert
#ROBOMERGE-SOURCE: CL 21204808 via CL 21205552 via CL 21205565 via CL 21205612
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21209877 by mickael gilabert in ue5-main branch]
This commit is contained in:
mickael gilabert
2022-07-21 17:08:05 -04:00
parent 9ea48b59ef
commit b2c395d8b8
12 changed files with 64 additions and 3 deletions
@@ -16,6 +16,11 @@ public:
UE_DEPRECATED(5.1, "ShouldTrace is deprecated. Details should be internal now.")
static bool ShouldTrace();
virtual void OnMallocInitialized() override
{
WrappedMalloc->OnMallocInitialized();
}
virtual void OnPreFork() override
{
WrappedMalloc->OnPreFork();