#include <testing.h>
Public Member Functions | |
OverrideEmbedderStackStateScope (HeapHandle &heap_handle, EmbedderStackState state) | |
~OverrideEmbedderStackStateScope () | |
OverrideEmbedderStackStateScope (const OverrideEmbedderStackStateScope &)=delete | |
OverrideEmbedderStackStateScope & | operator= (const OverrideEmbedderStackStateScope &)=delete |
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.
|
explicit |
Constructs a scoped object that automatically enters and leaves the scope.
heap_handle | The corresponding heap. |
cppgc::testing::OverrideEmbedderStackStateScope::~OverrideEmbedderStackStateScope | ( | ) |
|
delete |
|
delete |