Add comments about vmctx pointers in various datastructures. (#2925)
This forward-ports the relevant parts of #1396.
This commit is contained in:
@@ -89,7 +89,8 @@ impl From<ExportMemory> for Export {
|
||||
pub struct ExportGlobal {
|
||||
/// The address of the global storage.
|
||||
pub definition: *mut VMGlobalDefinition,
|
||||
/// Pointer to the containing `VMContext`.
|
||||
/// Pointer to a `VMContext` which has a lifetime at least as long as the
|
||||
/// global. This may not be the `VMContext` which defines the global.
|
||||
pub vmctx: *mut VMContext,
|
||||
/// The global declaration, used for compatibilty checking.
|
||||
pub global: Global,
|
||||
|
||||
Reference in New Issue
Block a user