mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 16:26:10 +03:00
25 lines
592 B
C++
25 lines
592 B
C++
|
// Copyright (c) 2018 The Chromium Authors. All rights reserved.
|
||
|
// Use of this source code is governed by a BSD-style license that can be
|
||
|
// found in the LICENSE file.
|
||
|
|
||
|
#include "base/allocator/partition_allocator/partition_oom.h"
|
||
|
|
||
|
#include "base/allocator/partition_allocator/oom.h"
|
||
|
#include "build/build_config.h"
|
||
|
|
||
|
namespace base {
|
||
|
namespace internal {
|
||
|
|
||
|
void NOINLINE PartitionExcessiveAllocationSize() {
|
||
|
OOM_CRASH();
|
||
|
}
|
||
|
|
||
|
#if !defined(ARCH_CPU_64_BITS)
|
||
|
NOINLINE void PartitionOutOfMemoryWithLotsOfUncommitedPages() {
|
||
|
OOM_CRASH();
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
} // namespace internal
|
||
|
} // namespace base
|