5#ifndef INCLUDE_CPPGC_HEAP_H_
6#define INCLUDE_CPPGC_HEAP_H_
23class AllocationHandle;
61 kSupportsConservativeStackScan,
66 kNoConservativeStackScan,
86 kIncrementalAndConcurrent
106 kIncrementalAndConcurrent
119 size_t initial_heap_size_bytes = 0;
149 StackSupport stack_support = StackSupport::kSupportsConservativeStackScan;
154 MarkingType marking_support = MarkingType::kIncrementalAndConcurrent;
159 SweepingType sweeping_support = SweepingType::kIncrementalAndConcurrent;
171 std::optional<StackStartMarker> stack_start_marker = std::nullopt;
181 std::shared_ptr<Platform> platform,
196 const char* source,
const char* reason,
197 StackState stack_state = StackState::kMayContainHeapPointers);
214 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:72
HeapHandle & GetHeapHandle()
StackSupport
Definition: heap.h:57
SweepingType
Definition: heap.h:92
void ForceGarbageCollectionSlow(const char *source, const char *reason, StackState stack_state=StackState::kMayContainHeapPointers)
AllocationHandle & GetAllocationHandle()
void * stack_start() const
Definition: heap.h:41
StackStartMarker()
Definition: heap.h:40
Definition: allocation.h:38
EmbedderStackState
Definition: common.h:15
std::vector< std::unique_ptr< CustomSpaceBase > > custom_spaces
Definition: heap.h:139
static HeapOptions Default()
Definition: heap.h:132
ResourceConstraints resource_constraints
Definition: heap.h:165
#define V8_EXPORT
Definition: v8config.h:854