![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <heap-consistency.h>
Public Member Functions | |
NoGarbageCollectionScope (HeapHandle &heap_handle) | |
~NoGarbageCollectionScope () | |
NoGarbageCollectionScope (const NoGarbageCollectionScope &)=delete | |
NoGarbageCollectionScope & | operator= (const NoGarbageCollectionScope &)=delete |
Static Public Member Functions | |
static void | Enter (HeapHandle &heap_handle) |
static void | Leave (HeapHandle &heap_handle) |
Private Member Functions | |
CPPGC_STACK_ALLOCATED () | |
Private Attributes | |
HeapHandle & | heap_handle_ |
Avoids invoking garbage collection finalizations. Already running garbage collection phase are unaffected by this scope.
Should only be used temporarily as the scope has an impact on memory usage and follow up garbage collections.
Definition at line 270 of file heap-consistency.h.
|
explicit |
Constructs a scoped object that automatically enters and leaves a no garbage collection scope based on its lifetime.
heap_handle | The corresponding heap. |
Definition at line 55 of file heap-consistency.cc.
cppgc::subtle::NoGarbageCollectionScope::~NoGarbageCollectionScope | ( | ) |
|
delete |
|
private |
|
static |
Enters a no garbage collection scope. Must be paired with Leave()
. Prefer a scope instance of NoGarbageCollectionScope
.
heap_handle | The corresponding heap. |
Definition at line 44 of file heap-consistency.cc.
|
static |
Leaves a no garbage collection scope. Must be paired with Enter()
. Prefer a scope instance of NoGarbageCollectionScope
.
heap_handle | The corresponding heap. |
Definition at line 50 of file heap-consistency.cc.
|
delete |
|
private |
Definition at line 303 of file heap-consistency.h.