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

#include <collection-barrier.h>

Collaboration diagram for v8::internal::CollectionBarrier:

Public Member Functions

 CollectionBarrier (Heap *heap, std::shared_ptr< v8::TaskRunner > foreground_task_runner)
 
bool WasGCRequested ()
 
bool TryRequestGC ()
 
void NotifyShutdownRequested ()
 
void StopTimeToCollectionTimer ()
 
void ResumeThreadsAwaitingCollection ()
 
void CancelCollectionAndResumeThreads ()
 
bool AwaitCollectionBackground (LocalHeap *local_heap)
 

Private Attributes

Heapheap_
 
base::Mutex mutex_
 
base::ConditionVariable cv_wakeup_
 
base::ElapsedTimer timer_
 
std::atomic< boolcollection_requested_ {false}
 
bool block_for_collection_ = false
 
bool collection_performed_ = false
 
bool shutdown_requested_ = false
 
std::shared_ptr< v8::TaskRunnerforeground_task_runner_
 

Detailed Description

Definition at line 22 of file collection-barrier.h.

Constructor & Destructor Documentation

◆ CollectionBarrier()

v8::internal::CollectionBarrier::CollectionBarrier ( Heap * heap,
std::shared_ptr< v8::TaskRunner > foreground_task_runner )

Definition at line 22 of file collection-barrier.cc.

Member Function Documentation

◆ AwaitCollectionBackground()

bool v8::internal::CollectionBarrier::AwaitCollectionBackground ( LocalHeap * local_heap)

Definition at line 91 of file collection-barrier.cc.

Here is the call graph for this function:

◆ CancelCollectionAndResumeThreads()

void v8::internal::CollectionBarrier::CancelCollectionAndResumeThreads ( )

Definition at line 82 of file collection-barrier.cc.

Here is the call graph for this function:

◆ NotifyShutdownRequested()

void v8::internal::CollectionBarrier::NotifyShutdownRequested ( )

Definition at line 66 of file collection-barrier.cc.

Here is the call graph for this function:

◆ ResumeThreadsAwaitingCollection()

void v8::internal::CollectionBarrier::ResumeThreadsAwaitingCollection ( )

Definition at line 73 of file collection-barrier.cc.

Here is the call graph for this function:

◆ StopTimeToCollectionTimer()

void v8::internal::CollectionBarrier::StopTimeToCollectionTimer ( )

Definition at line 137 of file collection-barrier.cc.

Here is the call graph for this function:

◆ TryRequestGC()

bool v8::internal::CollectionBarrier::TryRequestGC ( )

Definition at line 30 of file collection-barrier.cc.

Here is the call graph for this function:

◆ WasGCRequested()

bool v8::internal::CollectionBarrier::WasGCRequested ( )

Definition at line 26 of file collection-barrier.cc.

Member Data Documentation

◆ block_for_collection_

bool v8::internal::CollectionBarrier::block_for_collection_ = false
private

Definition at line 64 of file collection-barrier.h.

◆ collection_performed_

bool v8::internal::CollectionBarrier::collection_performed_ = false
private

Definition at line 68 of file collection-barrier.h.

◆ collection_requested_

std::atomic<bool> v8::internal::CollectionBarrier::collection_requested_ {false}
private

Definition at line 59 of file collection-barrier.h.

◆ cv_wakeup_

base::ConditionVariable v8::internal::CollectionBarrier::cv_wakeup_
private

Definition at line 54 of file collection-barrier.h.

◆ foreground_task_runner_

std::shared_ptr<v8::TaskRunner> v8::internal::CollectionBarrier::foreground_task_runner_
private

Definition at line 74 of file collection-barrier.h.

◆ heap_

Heap* v8::internal::CollectionBarrier::heap_
private

Definition at line 52 of file collection-barrier.h.

◆ mutex_

base::Mutex v8::internal::CollectionBarrier::mutex_
private

Definition at line 53 of file collection-barrier.h.

◆ shutdown_requested_

bool v8::internal::CollectionBarrier::shutdown_requested_ = false
private

Definition at line 71 of file collection-barrier.h.

◆ timer_

base::ElapsedTimer v8::internal::CollectionBarrier::timer_
private

Definition at line 55 of file collection-barrier.h.


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