#include <heap.h>
Definition at line 32 of file heap.h.
◆ StackState
Specifies the stack state the embedder is in.
Definition at line 37 of file heap.h.
◆ 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.
|
Definition at line 42 of file heap.h.
◆ ~Heap()
◆ 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 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& GetAllocationHandle |
( |
| ) |
|
◆ internal::Heap
friend class internal::Heap |
|
friend |
The documentation for this class was generated from the following file: