#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 {
class PA_SCOPED_LOCKABLE ConditionalScopedGuard { … };
}
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) { … }
}