WAMR User APIs
Public Attributes | List of all members
WASMLocalObjectRef Struct Reference

#include <gc_export.h>

Collaboration diagram for WASMLocalObjectRef:
Collaboration graph
[legend]

Public Attributes

struct WASMLocalObjectRefprev
 
wasm_obj_t val
 

Detailed Description

Local object reference that can be traced when GC occurs. All native functions that need to hold WASM objects which may not be referenced from other elements of GC root set may be hold with this type of variable so that they can be traced when GC occurs. Before using such a variable, it must be pushed onto the stack (implemented as a chain) of such variables, and before leaving the frame of the variables, they must be popped from the stack.


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