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;
HeapHandle & GetHeapHandle()
AllocationHandle & GetAllocationHandle()
static std::unique_ptr< Heap > Create(std::shared_ptr< Platform > platform, HeapOptions options=HeapOptions::Default())
void ForceGarbageCollectionSlow(const char *source, const char *reason, StackState stack_state=StackState::kMayContainHeapPointers)
std::vector< std::unique_ptr< CustomSpaceBase > > custom_spaces
static HeapOptions Default()
ResourceConstraints resource_constraints