![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <heap.h>
Static Public Member Functions | |
static HeapOptions | Default () |
Public Attributes | |
std::vector< std::unique_ptr< CustomSpaceBase > > | custom_spaces |
StackSupport | stack_support = StackSupport::kSupportsConservativeStackScan |
MarkingType | marking_support = MarkingType::kIncrementalAndConcurrent |
SweepingType | sweeping_support = SweepingType::kIncrementalAndConcurrent |
ResourceConstraints | resource_constraints |
Options specifying Heap properties (e.g. custom spaces) when initializing a heap through Heap::Create()
.
|
inlinestatic |
Creates reasonable defaults for instantiating a Heap.
Heap::Create()
. std::vector<std::unique_ptr<CustomSpaceBase> > cppgc::Heap::HeapOptions::custom_spaces |
MarkingType cppgc::Heap::HeapOptions::marking_support = MarkingType::kIncrementalAndConcurrent |
ResourceConstraints cppgc::Heap::HeapOptions::resource_constraints |
StackSupport cppgc::Heap::HeapOptions::stack_support = StackSupport::kSupportsConservativeStackScan |
Specifies whether conservative stack scan is supported. When conservative stack scan is not supported, the collector may try to invoke garbage collections using non-nestable task, which are guaranteed to have no interesting stack, through the provided Platform. If such tasks are not supported by the Platform, the embedder must take care of invoking the GC through ForceGarbageCollectionSlow()
.
SweepingType cppgc::Heap::HeapOptions::sweeping_support = SweepingType::kIncrementalAndConcurrent |