Loading...
Searching...
No Matches
Public Member Functions | List of all members
cppgc::testing::OverrideEmbedderStackStateScope Class Referencefinal

#include <testing.h>

Public Member Functions

 OverrideEmbedderStackStateScope (HeapHandle &heap_handle, EmbedderStackState state)
 
 ~OverrideEmbedderStackStateScope ()
 
 OverrideEmbedderStackStateScope (const OverrideEmbedderStackStateScope &)=delete
 
OverrideEmbedderStackStateScopeoperator= (const OverrideEmbedderStackStateScope &)=delete
 

Detailed Description

Overrides the state of the stack with the provided value. Parameters passed to explicit garbage collection calls still take precedence. Must not be nested.

This scope is useful to make the garbage collector consider the stack when tasks that invoke garbage collection (through the provided platform) contain interesting pointers on its stack.

Constructor & Destructor Documentation

◆ OverrideEmbedderStackStateScope() [1/2]

cppgc::testing::OverrideEmbedderStackStateScope::OverrideEmbedderStackStateScope ( HeapHandle heap_handle,
EmbedderStackState  state 
)
explicit

Constructs a scoped object that automatically enters and leaves the scope.

Parameters
heap_handleThe corresponding heap.

◆ ~OverrideEmbedderStackStateScope()

cppgc::testing::OverrideEmbedderStackStateScope::~OverrideEmbedderStackStateScope ( )

◆ OverrideEmbedderStackStateScope() [2/2]

cppgc::testing::OverrideEmbedderStackStateScope::OverrideEmbedderStackStateScope ( const OverrideEmbedderStackStateScope )
delete

Member Function Documentation

◆ operator=()

OverrideEmbedderStackStateScope & cppgc::testing::OverrideEmbedderStackStateScope::operator= ( const OverrideEmbedderStackStateScope )
delete

The documentation for this class was generated from the following file: