v8  7.8.279(node12.16.3)
V8 is Google's open source JavaScript engine
TracedGlobalTrait< T > Struct Template Reference

#include <v8.h>

Static Public Attributes

static constexpr bool kRequiresExplicitDestruction = true
 

Detailed Description

template<typename T>
struct v8::TracedGlobalTrait< T >

Trait specifying behavior of |TracedGlobal<T>|.

Definition at line 798 of file v8.h.

Field Documentation

◆ kRequiresExplicitDestruction

constexpr bool kRequiresExplicitDestruction = true
static

Specifies whether |TracedGlobal<T>| should clear its handle on destruction.

V8 will not clear the embedder-side memory of the handle. The embedder is expected to report all |TracedGlobal<T>| handles through |EmbedderHeapTracer| upon garabge collection.

See |EmbedderHeapTracer::IsRootForNonTracingGC| for handling with non-tracing GCs in V8.

Definition at line 809 of file v8.h.


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