#include <v8-embedder-heap.h>
Handler for embedder roots on non-unified heap garbage collections.
Definition at line 22 of file v8-embedder-heap.h.
◆ ~EmbedderRootsHandler()
virtual v8::EmbedderRootsHandler::~EmbedderRootsHandler |
( |
| ) |
|
|
virtualdefault |
◆ EmbedderRootsHandler()
v8::EmbedderRootsHandler::EmbedderRootsHandler |
( |
| ) |
|
|
default |
◆ ResetRoot()
Used in combination with |IsRoot|. Called by V8 when an object that is backed by a handle is reclaimed by a non-tracing garbage collection. It is up to the embedder to reset the original handle.
Note that the |handle| is different from the handle that the embedder holds for retaining the object. It is up to the embedder to find the original handle via the object or class id.
◆ TryResetRoot()
Similar to |ResetRoot()|, but opportunistic. The function is called in parallel for different handles and as such must be thread-safe. In case, |false| is returned, |ResetRoot()| will be recalled for the same handle.
Definition at line 44 of file v8-embedder-heap.h.
◆ internal::TracedHandles
The documentation for this class was generated from the following file: