5#ifndef INCLUDE_CPPGC_HEAP_H_
6#define INCLUDE_CPPGC_HEAP_H_
23class AllocationHandle;
49 kSupportsConservativeStackScan,
54 kNoConservativeStackScan,
74 kIncrementalAndConcurrent
94 kIncrementalAndConcurrent
107 size_t initial_heap_size_bytes = 0;
137 StackSupport stack_support = StackSupport::kSupportsConservativeStackScan;
142 MarkingType marking_support = MarkingType::kIncrementalAndConcurrent;
147 SweepingType sweeping_support = SweepingType::kIncrementalAndConcurrent;
164 std::shared_ptr<Platform> platform,
179 const char* source,
const char* reason,
180 StackState stack_state = StackState::kMayContainHeapPointers);
197 friend class internal::Heap;
Definition: heap-handle.h:21
static std::unique_ptr< Heap > Create(std::shared_ptr< Platform > platform, HeapOptions options=HeapOptions::Default())
MarkingType
Definition: heap.h:60
HeapHandle & GetHeapHandle()
StackSupport
Definition: heap.h:45
SweepingType
Definition: heap.h:80
void ForceGarbageCollectionSlow(const char *source, const char *reason, StackState stack_state=StackState::kMayContainHeapPointers)
AllocationHandle & GetAllocationHandle()
Definition: allocation.h:38
EmbedderStackState
Definition: common.h:15
std::vector< std::unique_ptr< CustomSpaceBase > > custom_spaces
Definition: heap.h:127
static HeapOptions Default()
Definition: heap.h:120
ResourceConstraints resource_constraints
Definition: heap.h:153
#define V8_EXPORT
Definition: v8config.h:793