chromium/base/allocator/partition_allocator/src/partition_alloc/lightweight_quarantine.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "partition_alloc/lightweight_quarantine.h"

#include "partition_alloc/internal_allocator.h"
#include "partition_alloc/partition_page.h"
#include "partition_alloc/partition_root.h"

namespace partition_alloc::internal {
namespace {

// An utility to lock only if a condition is met.
class PA_SCOPED_LOCKABLE ConditionalScopedGuard {};

}  // namespace

LightweightQuarantineBranch LightweightQuarantineRoot::CreateBranch(
    const LightweightQuarantineBranchConfig& config) {}

LightweightQuarantineBranch::LightweightQuarantineBranch(
    Root& root,
    const LightweightQuarantineBranchConfig& config)
    :{}

LightweightQuarantineBranch::LightweightQuarantineBranch(
    LightweightQuarantineBranch&& b)
    :{}

LightweightQuarantineBranch::~LightweightQuarantineBranch() {}

bool LightweightQuarantineBranch::Quarantine(void* object,
                                             SlotSpanMetadata* slot_span,
                                             uintptr_t slot_start,
                                             size_t usable_size) {}

bool LightweightQuarantineBranch::IsQuarantinedForTesting(void* object) {}

void LightweightQuarantineBranch::SetCapacityInBytes(size_t capacity_in_bytes) {}

void LightweightQuarantineBranch::Purge() {}

PA_ALWAYS_INLINE void LightweightQuarantineBranch::PurgeInternal(
    size_t target_size_in_bytes) {}

}  // namespace partition_alloc::internal