#include <heap-state.h>
Helpers to peek into heap-internal state.
Definition at line 19 of file heap-state.h.
◆ HeapState()
cppgc::subtle::HeapState::HeapState |
( |
| ) |
|
|
privatedelete |
◆ IsInAtomicPause()
bool cppgc::subtle::HeapState::IsInAtomicPause |
( |
const HeapHandle & | heap_handle | ) |
|
|
static |
Returns whether the garbage collector is in the atomic pause, i.e., the mutator is stopped from running. This API is experimental and is expected to be removed in future.
- Parameters
-
heap_handle | The corresponding heap. |
- Returns
- true if the garbage collector is currently in the atomic pause, and false otherwise.
Definition at line 32 of file heap-state.cc.
◆ IsMarking()
bool cppgc::subtle::HeapState::IsMarking |
( |
const HeapHandle & | heap_handle | ) |
|
|
static |
Returns whether the garbage collector is marking. This API is experimental and is expected to be removed in future.
- Parameters
-
heap_handle | The corresponding heap. |
- Returns
- true if the garbage collector is currently marking, and false otherwise.
Definition at line 13 of file heap-state.cc.
◆ IsSweeping()
bool cppgc::subtle::HeapState::IsSweeping |
( |
const HeapHandle & | heap_handle | ) |
|
|
static |
◆ IsSweepingOnOwningThread()
bool cppgc::subtle::HeapState::IsSweepingOnOwningThread |
( |
const HeapHandle & | heap_handle | ) |
|
|
static |
◆ PreviousGCWasConservative()
bool cppgc::subtle::HeapState::PreviousGCWasConservative |
( |
const HeapHandle & | heap_handle | ) |
|
|
static |
Returns whether the last garbage collection was finalized conservatively (i.e., with a non-empty stack). This API is experimental and is expected to be removed in future.
- Parameters
-
heap_handle | The corresponding heap. |
- Returns
- true if the last garbage collection was finalized conservatively, and false otherwise.
Definition at line 37 of file heap-state.cc.
The documentation for this class was generated from the following files: