Home
last modified time | relevance | path

Searched refs:PCScan (Results 1 – 21 of 21) sorted by relevance

/external/cronet/base/allocator/partition_allocator/starscan/
Dpcscan.cc12 void PCScan::Initialize(InitConfig config) { in Initialize()
16 bool PCScan::IsInitialized() { in IsInitialized()
20 void PCScan::Disable() { in Disable()
21 auto& instance = PCScan::Instance(); in Disable()
25 bool PCScan::IsEnabled() { in IsEnabled()
26 auto& instance = PCScan::Instance(); in IsEnabled()
30 void PCScan::Reenable() { in Reenable()
31 auto& instance = PCScan::Instance(); in Reenable()
35 void PCScan::RegisterScannableRoot(Root* root) { in RegisterScannableRoot()
39 void PCScan::RegisterNonScannableRoot(Root* root) { in RegisterNonScannableRoot()
[all …]
Dpcscan.h40 class PA_COMPONENT_EXPORT(PARTITION_ALLOC) PCScan final { in PA_COMPONENT_EXPORT()
76 PCScan(const PCScan&) = delete; in PA_COMPONENT_EXPORT()
77 PCScan& operator=(const PCScan&) = delete; in PA_COMPONENT_EXPORT()
161 PA_ALWAYS_INLINE static PCScan& Instance(); in PA_COMPONENT_EXPORT()
166 inline constexpr PCScan(); in PA_COMPONENT_EXPORT()
180 static PCScan instance_ PA_CONSTINIT; in PA_COMPONENT_EXPORT()
190 constexpr PCScan::PCScan() = default;
192 PA_ALWAYS_INLINE PCScan& PCScan::Instance() { in Instance()
201 PA_ALWAYS_INLINE bool PCScan::IsInProgress() { in IsInProgress()
202 const PCScan& instance = Instance(); in IsInProgress()
[all …]
Dpcscan_internal.cc481 PCScanTask(PCScan& pcscan, size_t quarantine_last_size);
499 using Root = PCScan::Root;
512 task_.pcscan_.state_.store(PCScan::State::kScanning, in SyncScope()
525 task_.pcscan_.state_.store(PCScan::State::kSweepingAndFinishing, in ~SyncScope()
612 PCScan& pcscan_;
723 const PCScan::ClearType clear_type = pcscan_.clear_type_; in ClearQuarantinedSlotsAndPrepareCardTable()
726 if (clear_type == PCScan::ClearType::kEager) { in ClearQuarantinedSlotsAndPrepareCardTable()
740 if (clear_type == PCScan::ClearType::kLazy) { in ClearQuarantinedSlotsAndPrepareCardTable()
830 PCScanTask::PCScanTask(PCScan& pcscan, size_t quarantine_last_size) in PCScanTask()
1067 (pcscan_.clear_type_ == PCScan::ClearType::kEager); in SweepQuarantine()
[all …]
Dwrite_protector.cc30 PCScan::ClearType NoWriteProtector::SupportedClearType() const { in SupportedClearType()
31 return PCScan::ClearType::kLazy; in SupportedClearType()
61 PCScan::JoinScanIfNeeded(); in UserFaultFDThread()
124 PCScan::ClearType UserFaultFDWriteProtector::SupportedClearType() const { in SupportedClearType()
125 return IsSupported() ? PCScan::ClearType::kEager : PCScan::ClearType::kLazy; in SupportedClearType()
Dpcscan_unittest.cc33 if (PCScan::IsStackScanningEnabled()) { in DisableStackScanningScope()
34 PCScan::DisableStackScanning(); in DisableStackScanningScope()
40 PCScan::EnableStackScanning(); in ~DisableStackScanningScope()
56 PCScan::ReinitForTesting( in PartitionAllocPCScanTestBase()
57 {PCScan::InitConfig::WantedWriteProtectionMode::kDisabled, in PartitionAllocPCScanTestBase()
58 PCScan::InitConfig::SafepointMode::kEnabled}); in PartitionAllocPCScanTestBase()
71 PCScan::RegisterScannableRoot(allocator_.root()); in PartitionAllocPCScanTestBase()
81 PCScan::Instance().PerformScan(PCScan::InvocationMode::kBlocking); in RunPCScan()
85 PCScan::Instance().PerformScan( in SchedulePCScan()
86 PCScan::InvocationMode::kScheduleOnlyForTesting); in SchedulePCScan()
[all …]
Dpcscan_internal.h32 using Root = PCScan::Root;
55 void Initialize(PCScan::InitConfig);
58 void PerformScan(PCScan::InvocationMode);
59 void PerformScanIfNeeded(PCScan::InvocationMode);
103 void ReinitForTesting(PCScan::InitConfig); // IN-TEST
Dwrite_protector.h31 virtual PCScan::ClearType SupportedClearType() const = 0;
38 PCScan::ClearType SupportedClearType() const final;
58 PCScan::ClearType SupportedClearType() const final;
DREADME.md27 *Probabilistic conservative scan (PCScan)* (`pcscan.{h,cc}`) is one particular
37 PCScan is currently considered **experimental** - please do not use it in
43 PCScan.
44 * `PartitionAllocPCScanBrowserOnly`: Enables PCScan in the browser process
Dpcscan_scheduling.cc36 PCScan::PerformScan(PCScan::InvocationMode::kNonBlocking); in EnableScheduling()
/external/cronet/base/allocator/partition_allocator/
Dmemory_reclaimer.cc71 using PCScan = internal::PCScan; in Reclaim() typedef
73 ? PCScan::InvocationMode::kForcedBlocking in Reclaim()
74 : PCScan::InvocationMode::kBlocking; in Reclaim()
75 PCScan::PerformScanIfNeeded(invocation_mode); in Reclaim()
Dpartition_root.h247 using PCScan = internal::PCScan; in PA_COMPONENT_EXPORT() local
1289 PCScan::JoinScanIfNeeded(); in FreeNoHooks()
1291 PCScan::MoveToQuarantine(object, slot_span->GetUsableSize(root), in FreeNoHooks()
1903 PCScan::JoinScanIfNeeded(); in AllocWithFlagsNoHooks()
Dpartition_bucket.cc879 PCScan::RegisterNewSuperPage(root, super_page); in InitializeSuperPage()
Dpartition_root.cc1347 if (PCScan::IsInProgress()) { in PurgeMemory()
/external/cronet/base/allocator/
Dpartition_alloc_support.cc196 partition_alloc::internal::PCScan::RegisterStatsReporter(&s_reporter); in RegisterPCScanStatsReporter()
771 partition_alloc::internal::PCScan::SetProcessName(name); in SetProcessNameForPCScan()
777 using Config = partition_alloc::internal::PCScan::InitConfig; in EnablePCScanForMallocPartitionsIfNeeded()
791 using Config = partition_alloc::internal::PCScan::InitConfig; in EnablePCScanForMallocPartitionsInBrowserProcessIfNeeded()
813 using Config = partition_alloc::internal::PCScan::InitConfig; in EnablePCScanForMallocPartitionsInRendererProcessIfNeeded()
1118 partition_alloc::internal::PCScan::EnableStackScanning(); in ReconfigureAfterFeatureListInit()
1120 partition_alloc::internal::PCScan::NotifyThreadCreated( in ReconfigureAfterFeatureListInit()
1126 partition_alloc::internal::PCScan::EnableImmediateFreeing(); in ReconfigureAfterFeatureListInit()
1130 partition_alloc::internal::PCScan::SetClearType( in ReconfigureAfterFeatureListInit()
1131 partition_alloc::internal::PCScan::ClearType::kEager); in ReconfigureAfterFeatureListInit()
[all …]
/external/cronet/base/allocator/partition_allocator/partition_alloc_base/threading/
Dplatform_thread_posix_for_testing.cc56 PCScan::NotifyThreadCreated(GetStackPointer()); in ThreadFunc()
63 PCScan::NotifyThreadDestroyed(); in ThreadFunc()
Dplatform_thread_win_for_testing.cc66 PCScan::NotifyThreadCreated(GetStackPointer()); in ThreadFunc()
78 PCScan::NotifyThreadDestroyed(); in ThreadFunc()
/external/cronet/base/allocator/partition_allocator/shim/
Dallocator_shim_default_dispatch_to_partition_alloc.cc673 void EnablePCScan(partition_alloc::internal::PCScan::InitConfig config) { in EnablePCScan()
676 partition_alloc::internal::PCScan::Initialize(config); in EnablePCScan()
678 partition_alloc::internal::PCScan::RegisterScannableRoot(Allocator()); in EnablePCScan()
680 partition_alloc::internal::PCScan::RegisterScannableRoot( in EnablePCScan()
683 partition_alloc::internal::PCScan::RegisterScannableRoot( in EnablePCScan()
Dallocator_shim.h206 BASE_EXPORT void EnablePCScan(partition_alloc::internal::PCScan::InitConfig);
/external/cronet/base/threading/
Dplatform_thread_posix.cc80 partition_alloc::internal::PCScan::NotifyThreadCreated( in ThreadFunc()
108 partition_alloc::internal::PCScan::NotifyThreadDestroyed(); in ThreadFunc()
Dplatform_thread_win.cc120 partition_alloc::internal::PCScan::NotifyThreadCreated( in ThreadFunc()
141 partition_alloc::internal::PCScan::NotifyThreadDestroyed(); in ThreadFunc()
/external/cronet/base/memory/
Dnonscannable_memory.cc77 partition_alloc::internal::PCScan::RegisterNonScannableRoot( in NotifyPCScanEnabled()