#include <heap.h>
◆ StackState
Specifies the stack state the embedder is in.
◆ MarkingType
Specifies supported marking types.
Enumerator |
---|
kAtomic | Atomic stop-the-world marking. This option does not require any write barriers but is the most intrusive in terms of jank.
|
kIncremental | Incremental marking interleaves marking with the rest of the application workload on the same thread.
|
kIncrementalAndConcurrent | Incremental and concurrent marking.
|
◆ StackSupport
Specifies whether conservative stack scanning is supported.
Enumerator |
---|
kSupportsConservativeStackScan | Conservative stack scan is supported.
|
kNoConservativeStackScan | Conservative stack scan is not supported. Embedders may use this option when using custom infrastructure that is unsupported by the library.
|
◆ SweepingType
Specifies supported sweeping types.
Enumerator |
---|
kAtomic | Atomic stop-the-world sweeping. All of sweeping is performed at once.
|
kIncremental | Incremental sweeping interleaves sweeping with the rest of the application workload on the same thread.
|
kIncrementalAndConcurrent | Incremental and concurrent sweeping. Sweeping is split and interleaved with the rest of the application.
|
◆ ~Heap()
virtual cppgc::Heap::~Heap |
( |
| ) |
|
|
virtualdefault |
◆ Create()
Creates a new heap that can be used for object allocation.
- Parameters
-
platform | implemented and provided by the embedder. |
options | HeapOptions specifying various properties for the Heap. |
- Returns
- a new Heap instance.
◆ ForceGarbageCollectionSlow()
void cppgc::Heap::ForceGarbageCollectionSlow |
( |
const char * |
source, |
|
|
const char * |
reason, |
|
|
StackState |
stack_state = StackState::kMayContainHeapPointers |
|
) |
| |
Forces garbage collection.
- Parameters
-
source | String specifying the source (or caller) triggering a forced garbage collection. |
reason | String specifying the reason for the forced garbage collection. |
stack_state | The embedder stack state, see StackState. |
◆ GetAllocationHandle()
AllocationHandle & cppgc::Heap::GetAllocationHandle |
( |
| ) |
|
◆ GetHeapHandle()
- Returns
- the opaque heap handle which may be used to refer to this heap in other APIs. Valid as long as the underlying
Heap
is alive.
◆ internal::Heap
friend class internal::Heap |
|
friend |
The documentation for this class was generated from the following file: