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

Public Member Functions

 MinorSweeperJob (Isolate *isolate, Sweeper *sweeper)
 
 ~MinorSweeperJob () override=default
 
 MinorSweeperJob (const MinorSweeperJob &)=delete
 
MinorSweeperJoboperator= (const MinorSweeperJob &)=delete
 
void Run (JobDelegate *delegate) final
 
size_t GetMaxConcurrency (size_t worker_count) const override
 
- Public Member Functions inherited from v8::JobTask
virtual ~JobTask ()=default
 

Static Public Attributes

static constexpr int kMaxTasks = 1
 

Private Member Functions

void RunImpl (JobDelegate *delegate, bool is_joining_thread)
 

Private Attributes

Sweeper *const sweeper_
 
std::vector< ConcurrentMinorSweeper > & concurrent_sweepers
 
GCTracer *const tracer_
 
const uint64_t trace_id_
 

Detailed Description

Definition at line 175 of file sweeper.cc.

Constructor & Destructor Documentation

◆ MinorSweeperJob() [1/2]

v8::internal::Sweeper::MinorSweeperJob::MinorSweeperJob ( Isolate * isolate,
Sweeper * sweeper )
inline

Definition at line 179 of file sweeper.cc.

◆ ~MinorSweeperJob()

v8::internal::Sweeper::MinorSweeperJob::~MinorSweeperJob ( )
overridedefault

◆ MinorSweeperJob() [2/2]

v8::internal::Sweeper::MinorSweeperJob::MinorSweeperJob ( const MinorSweeperJob & )
delete

Member Function Documentation

◆ GetMaxConcurrency()

size_t v8::internal::Sweeper::MinorSweeperJob::GetMaxConcurrency ( size_t worker_count) const
inlineoverridevirtual

Controls the maximum number of threads calling Run() concurrently, given the number of threads currently assigned to this job and executing Run(). Run() is only invoked if the number of threads previously running Run() was less than the value returned. In general, this should return the latest number of incomplete work items (smallest unit of work) left to process, including items that are currently in progress. |worker_count| is the number of threads currently assigned to this job which some callers may need to determine their return value. Since GetMaxConcurrency() is a leaf function, it must not call back any JobHandle methods.

Implements v8::JobTask.

Definition at line 197 of file sweeper.cc.

Here is the call graph for this function:

◆ operator=()

MinorSweeperJob & v8::internal::Sweeper::MinorSweeperJob::operator= ( const MinorSweeperJob & )
delete

◆ Run()

void v8::internal::Sweeper::MinorSweeperJob::Run ( JobDelegate * delegate)
inlinefinalvirtual

Implements v8::JobTask.

Definition at line 193 of file sweeper.cc.

Here is the call graph for this function:

◆ RunImpl()

void v8::internal::Sweeper::MinorSweeperJob::RunImpl ( JobDelegate * delegate,
bool is_joining_thread )
inlineprivate

Definition at line 207 of file sweeper.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ concurrent_sweepers

std::vector<ConcurrentMinorSweeper>& v8::internal::Sweeper::MinorSweeperJob::concurrent_sweepers
private

Definition at line 225 of file sweeper.cc.

◆ kMaxTasks

int v8::internal::Sweeper::MinorSweeperJob::kMaxTasks = 1
staticconstexpr

Definition at line 177 of file sweeper.cc.

◆ sweeper_

Sweeper* const v8::internal::Sweeper::MinorSweeperJob::sweeper_
private

Definition at line 224 of file sweeper.cc.

◆ trace_id_

const uint64_t v8::internal::Sweeper::MinorSweeperJob::trace_id_
private

Definition at line 227 of file sweeper.cc.

◆ tracer_

GCTracer* const v8::internal::Sweeper::MinorSweeperJob::tracer_
private

Definition at line 226 of file sweeper.cc.


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