blob: 683358e0831f5b9db5887941eaa1900a18044e83 [file] [log] [blame]
// 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.
// Holds functions for generating OOM errors from PartitionAlloc. This is
// distinct from oom.h in that it is meant only for use in PartitionAlloc.
#include <stddef.h>
#include "build/build_config.h"
#include "third_party/base/compiler_specific.h"
namespace pdfium {
namespace base {
namespace internal {
NOINLINE void PartitionExcessiveAllocationSize(size_t size);
#if !defined(ARCH_CPU_64_BITS)
NOINLINE void PartitionOutOfMemoryWithLotsOfUncommitedPages(size_t size);
} // namespace internal
} // namespace base
} // namespace pdfium