v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
cppgc::internal::Sweeper Class Referencefinal

#include <sweeper.h>

Collaboration diagram for cppgc::internal::Sweeper:

Classes

class  SweeperImpl
 
class  SweepingOnMutatorThreadObserver
 

Public Member Functions

 Sweeper (HeapBase &)
 
 ~Sweeper ()
 
 Sweeper (const Sweeper &)=delete
 
Sweeperoperator= (const Sweeper &)=delete
 
void Start (SweepingConfig)
 
bool FinishIfRunning ()
 
void FinishIfOutOfWork ()
 
bool SweepForAllocationIfRunning (BaseSpace *space, size_t min_wanted_size, v8::base::TimeDelta max_duration)
 
bool IsSweepingOnMutatorThread () const
 
bool IsSweepingInProgress () const
 
bool PerformSweepOnMutatorThread (v8::base::TimeDelta max_duration, StatsCollector::ScopeId)
 

Static Public Member Functions

static constexpr bool CanDiscardMemory ()
 

Private Member Functions

void WaitForConcurrentSweepingForTesting ()
 

Private Attributes

HeapBaseheap_
 
std::unique_ptr< SweeperImplimpl_
 

Friends

class ConcurrentSweeperTest
 

Detailed Description

Definition at line 22 of file sweeper.h.

Constructor & Destructor Documentation

◆ Sweeper() [1/2]

cppgc::internal::Sweeper::Sweeper ( HeapBase & heap)
explicit

Definition at line 1656 of file sweeper.cc.

◆ ~Sweeper()

cppgc::internal::Sweeper::~Sweeper ( )
default

◆ Sweeper() [2/2]

cppgc::internal::Sweeper::Sweeper ( const Sweeper & )
delete

Member Function Documentation

◆ CanDiscardMemory()

static constexpr bool cppgc::internal::Sweeper::CanDiscardMemory ( )
inlinestaticconstexpr

Definition at line 36 of file sweeper.h.

Here is the call graph for this function:

◆ FinishIfOutOfWork()

void cppgc::internal::Sweeper::FinishIfOutOfWork ( )

Definition at line 1665 of file sweeper.cc.

Here is the caller graph for this function:

◆ FinishIfRunning()

bool cppgc::internal::Sweeper::FinishIfRunning ( )

Definition at line 1663 of file sweeper.cc.

Here is the caller graph for this function:

◆ IsSweepingInProgress()

bool cppgc::internal::Sweeper::IsSweepingInProgress ( ) const

Definition at line 1680 of file sweeper.cc.

Here is the caller graph for this function:

◆ IsSweepingOnMutatorThread()

bool cppgc::internal::Sweeper::IsSweepingOnMutatorThread ( ) const

Definition at line 1676 of file sweeper.cc.

Here is the caller graph for this function:

◆ operator=()

Sweeper & cppgc::internal::Sweeper::operator= ( const Sweeper & )
delete

◆ PerformSweepOnMutatorThread()

bool cppgc::internal::Sweeper::PerformSweepOnMutatorThread ( v8::base::TimeDelta max_duration,
StatsCollector::ScopeId scope_id )

Definition at line 1684 of file sweeper.cc.

◆ Start()

void cppgc::internal::Sweeper::Start ( SweepingConfig config)

Definition at line 1661 of file sweeper.cc.

Here is the caller graph for this function:

◆ SweepForAllocationIfRunning()

bool cppgc::internal::Sweeper::SweepForAllocationIfRunning ( BaseSpace * space,
size_t min_wanted_size,
v8::base::TimeDelta max_duration )

Definition at line 1671 of file sweeper.cc.

Here is the caller graph for this function:

◆ WaitForConcurrentSweepingForTesting()

void cppgc::internal::Sweeper::WaitForConcurrentSweepingForTesting ( )
private

Definition at line 1667 of file sweeper.cc.

Friends And Related Symbol Documentation

◆ ConcurrentSweeperTest

friend class ConcurrentSweeperTest
friend

Definition at line 84 of file sweeper.h.

Member Data Documentation

◆ heap_

HeapBase& cppgc::internal::Sweeper::heap_
private

Definition at line 81 of file sweeper.h.

◆ impl_

std::unique_ptr<SweeperImpl> cppgc::internal::Sweeper::impl_
private

Definition at line 82 of file sweeper.h.


The documentation for this class was generated from the following files: