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

Public Member Functions

 PageEvacuationJob (Isolate *isolate, MarkCompactCollector *collector, std::vector< std::unique_ptr< Evacuator > > *evacuators, std::vector< std::pair< ParallelWorkItem, MutablePageMetadata * > > evacuation_items)
 
void Run (JobDelegate *delegate) override
 
void ProcessItems (JobDelegate *delegate, Evacuator *evacuator)
 
size_t GetMaxConcurrency (size_t worker_count) const override
 
uint64_t trace_id () const
 
- Public Member Functions inherited from v8::JobTask
virtual ~JobTask ()=default
 

Private Attributes

MarkCompactCollectorcollector_
 
std::vector< std::unique_ptr< Evacuator > > * evacuators_
 
std::vector< std::pair< ParallelWorkItem, MutablePageMetadata * > > evacuation_items_
 
std::atomic< size_tremaining_evacuation_items_ {0}
 
IndexGenerator generator_
 
GCTracertracer_
 
const uint64_t trace_id_
 

Detailed Description

Definition at line 4672 of file mark-compact.cc.

Constructor & Destructor Documentation

◆ PageEvacuationJob()

v8::internal::PageEvacuationJob::PageEvacuationJob ( Isolate * isolate,
MarkCompactCollector * collector,
std::vector< std::unique_ptr< Evacuator > > * evacuators,
std::vector< std::pair< ParallelWorkItem, MutablePageMetadata * > > evacuation_items )
inline

Definition at line 4674 of file mark-compact.cc.

Member Function Documentation

◆ GetMaxConcurrency()

size_t v8::internal::PageEvacuationJob::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 4722 of file mark-compact.cc.

◆ ProcessItems()

void v8::internal::PageEvacuationJob::ProcessItems ( JobDelegate * delegate,
Evacuator * evacuator )
inline

Definition at line 4706 of file mark-compact.cc.

Here is the call graph for this function:

◆ Run()

void v8::internal::PageEvacuationJob::Run ( JobDelegate * delegate)
inlineoverridevirtual

Implements v8::JobTask.

Definition at line 4688 of file mark-compact.cc.

Here is the call graph for this function:

◆ trace_id()

uint64_t v8::internal::PageEvacuationJob::trace_id ( ) const
inline

Definition at line 4738 of file mark-compact.cc.

Member Data Documentation

◆ collector_

MarkCompactCollector* v8::internal::PageEvacuationJob::collector_
private

Definition at line 4741 of file mark-compact.cc.

◆ evacuation_items_

std::vector<std::pair<ParallelWorkItem, MutablePageMetadata*> > v8::internal::PageEvacuationJob::evacuation_items_
private

Definition at line 4744 of file mark-compact.cc.

◆ evacuators_

std::vector<std::unique_ptr<Evacuator> >* v8::internal::PageEvacuationJob::evacuators_
private

Definition at line 4742 of file mark-compact.cc.

◆ generator_

IndexGenerator v8::internal::PageEvacuationJob::generator_
private

Definition at line 4746 of file mark-compact.cc.

◆ remaining_evacuation_items_

std::atomic<size_t> v8::internal::PageEvacuationJob::remaining_evacuation_items_ {0}
private

Definition at line 4745 of file mark-compact.cc.

◆ trace_id_

const uint64_t v8::internal::PageEvacuationJob::trace_id_
private

Definition at line 4749 of file mark-compact.cc.

◆ tracer_

GCTracer* v8::internal::PageEvacuationJob::tracer_
private

Definition at line 4748 of file mark-compact.cc.


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