5#ifndef INCLUDE_CPPGC_HEAP_H_
6#define INCLUDE_CPPGC_HEAP_H_
13#include "cppgc/common.h"
14#include "cppgc/custom-space.h"
15#include "cppgc/platform.h"
19
20
23class AllocationHandle;
27
28
29
30
38
39
43
44
47
48
51
52
53
58
59
62
63
64
67
68
69
72
73
78
79
82
83
86
87
88
91
92
93
98
99
102
103
104
105
106
111
112
113
116
117
118
119
123
124
125
126
130
131
132
133
134
135
136
140
141
145
146
150
151
152
157
158
159
160
161
162
170
171
172
173
174
175
176
177
179 const char* source,
const char* reason,
183
184
185
189
190
191
HeapHandle & GetHeapHandle()
@ kIncrementalAndConcurrent
@ kSupportsConservativeStackScan
@ kNoConservativeStackScan
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)
@ kIncrementalAndConcurrent
@ kMayContainHeapPointers
std::vector< std::unique_ptr< CustomSpaceBase > > custom_spaces
static HeapOptions Default()
StackSupport stack_support
MarkingType marking_support
ResourceConstraints resource_constraints
SweepingType sweeping_support
size_t initial_heap_size_bytes