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 // Holds functions for generating OOM errors from PartitionAlloc. This is 6 // distinct from oom.h in that it is meant only for use in PartitionAlloc. 7 8 #ifndef THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_OOM_H_ 9 #define THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_OOM_H_ 10 11 #include "build/build_config.h" 12 #include "third_party/base/compiler_specific.h" 13 14 namespace pdfium { 15 namespace base { 16 namespace internal { 17 18 NOINLINE void PartitionExcessiveAllocationSize(); 19 20 #if !defined(ARCH_CPU_64_BITS) 21 NOINLINE void PartitionOutOfMemoryWithLotsOfUncommitedPages(); 22 #endif 23 24 } // namespace internal 25 } // namespace base 26 } // namespace pdfium 27 28 #endif // THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_OOM_H_ 29