mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-04 18:10:18 +00:00
print memory.grow
This commit is contained in:
parent
6424823586
commit
73bfa49dde
@ -37,6 +37,8 @@ pub unsafe extern "C" fn local_static_memory_grow(
|
||||
Err(_) => -1,
|
||||
};
|
||||
|
||||
println!("local static memory grow: delta {:?}, ret {}", delta, ret);
|
||||
|
||||
ctx.internal.memory_base = (*local_memory).base;
|
||||
ctx.internal.memory_bound = (*local_memory).bound;
|
||||
|
||||
@ -82,6 +84,8 @@ pub unsafe extern "C" fn local_dynamic_memory_grow(
|
||||
Err(_) => -1,
|
||||
};
|
||||
|
||||
println!("local dynamic memory grow: delta {:?}, ret {}", delta, ret);
|
||||
|
||||
ctx.internal.memory_base = (*local_memory).base;
|
||||
ctx.internal.memory_bound = (*local_memory).bound;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user