5#ifndef INCLUDE_CPPGC_HEAP_H_
6#define INCLUDE_CPPGC_HEAP_H_
27class AllocationHandle;
69 kSupportsConservativeStackScan,
74 kNoConservativeStackScan,
94 kIncrementalAndConcurrent
114 kIncrementalAndConcurrent
127 size_t initial_heap_size_bytes = 0;
157 StackSupport stack_support = StackSupport::kSupportsConservativeStackScan;
162 MarkingType marking_support = MarkingType::kIncrementalAndConcurrent;
167 SweepingType sweeping_support = SweepingType::kIncrementalAndConcurrent;
179 std::optional<StackStartMarker> stack_start_marker = std::nullopt;
189 std::shared_ptr<Platform> platform,
204 const char* source,
const char* reason,
205 StackState stack_state = StackState::kMayContainHeapPointers);
222 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:80
HeapHandle & GetHeapHandle()
StackSupport
Definition: heap.h:65
SweepingType
Definition: heap.h:100
void ForceGarbageCollectionSlow(const char *source, const char *reason, StackState stack_state=StackState::kMayContainHeapPointers)
AllocationHandle & GetAllocationHandle()
void * stack_start() const
Definition: heap.h:49
StackStartMarker()
Definition: heap.h:47
Definition: allocation.h:38
EmbedderStackState
Definition: common.h:15
std::vector< std::unique_ptr< CustomSpaceBase > > custom_spaces
Definition: heap.h:147
static HeapOptions Default()
Definition: heap.h:140
ResourceConstraints resource_constraints
Definition: heap.h:173
#define V8_EXPORT
Definition: v8config.h:867