#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 { … }
RandomEvictionQuarantine::~RandomEvictionQuarantine() { … }
void RandomEvictionQuarantine::FinishFree(const AllocationInfo& info) { … }
void RandomEvictionQuarantine::RecordAndZap(void* ptr, size_t size) { … }
template class SharedState<RandomEvictionQuarantine>;
}