WAMR User APIs
|
#include <gc_export.h>
Public Attributes | |
struct WASMLocalObjectRef * | prev |
wasm_obj_t | val |
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.