#include "partition_alloc/oom.h"
#include "partition_alloc/build_config.h"
#include "partition_alloc/oom_callback.h"
#include "partition_alloc/partition_alloc_base/compiler_specific.h"
#include "partition_alloc/partition_alloc_base/debug/alias.h"
#include "partition_alloc/partition_alloc_base/immediate_crash.h"
#if PA_BUILDFLAG(IS_WIN)
#include <windows.h>
#include <array>
#include <cstdlib>
#endif
namespace partition_alloc {
size_t g_oom_size = …;
namespace internal {
PA_NOINLINE void OnNoMemoryInternal(size_t size) { … }
}
void TerminateBecauseOutOfMemory(size_t size) { … }
namespace internal {
[[noreturn]] PA_NOINLINE PA_NOT_TAIL_CALLED void OnNoMemory(size_t size) { … }
}
}