diff options
Diffstat (limited to 'third_party/base/allocator/partition_allocator/partition_oom.cc')
-rw-r--r-- | third_party/base/allocator/partition_allocator/partition_oom.cc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/third_party/base/allocator/partition_allocator/partition_oom.cc b/third_party/base/allocator/partition_allocator/partition_oom.cc new file mode 100644 index 0000000000..a4052d1a3d --- /dev/null +++ b/third_party/base/allocator/partition_allocator/partition_oom.cc @@ -0,0 +1,26 @@ +// 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 "third_party/base/allocator/partition_allocator/partition_oom.h" + +#include "build/build_config.h" +#include "third_party/base/allocator/partition_allocator/oom.h" + +namespace pdfium { +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 +} // namespace pdfium |