1 // Copyright (c) 2018 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "third_party/base/allocator/partition_allocator/partition_oom.h"
6 
7 #include "build/build_config.h"
8 #include "third_party/base/allocator/partition_allocator/oom.h"
9 
10 namespace pdfium {
11 namespace base {
12 namespace internal {
13 
PartitionExcessiveAllocationSize()14 void NOINLINE PartitionExcessiveAllocationSize() {
15   OOM_CRASH();
16 }
17 
18 #if !defined(ARCH_CPU_64_BITS)
PartitionOutOfMemoryWithLotsOfUncommitedPages()19 NOINLINE void PartitionOutOfMemoryWithLotsOfUncommitedPages() {
20   OOM_CRASH();
21 }
22 #endif
23 
24 }  // namespace internal
25 }  // namespace base
26 }  // namespace pdfium
27