chromium/components/gwp_asan/client/lightweight_detector/random_eviction_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 "components/gwp_asan/client/lightweight_detector/random_eviction_quarantine.h"

#include "base/check_is_test.h"
#include "components/gwp_asan/client/thread_local_random_bit_generator.h"

namespace gwp_asan::internal::lud {

RandomEvictionQuarantineBase::RandomEvictionQuarantineBase(
    size_t max_allocation_count,
    size_t max_total_size,
    size_t total_size_high_water_mark,
    size_t total_size_low_water_mark,
    size_t eviction_chunk_size,
    size_t eviction_task_interval_ms)
    :{}

RandomEvictionQuarantineBase::~RandomEvictionQuarantineBase() = default;

bool RandomEvictionQuarantineBase::Add(const AllocationInfo& new_allocation) {}

void RandomEvictionQuarantineBase::PeriodicTrim() {}

bool RandomEvictionQuarantineBase::HasAllocationForTesting(
    void* requested_ptr) const {}

// Since the allocator hooks cannot be uninstalled, and they access an
// instance of this class, it's unsafe to ever destroy it outside unit tests.
RandomEvictionQuarantine::~RandomEvictionQuarantine() {}

void RandomEvictionQuarantine::FinishFree(const AllocationInfo& info) {}

void RandomEvictionQuarantine::RecordAndZap(void* ptr, size_t size) {}

template class SharedState<RandomEvictionQuarantine>;

}  // namespace gwp_asan::internal::lud