fix exec_env not checked issue, export __heap_base and __data_end in sample to decrease memory usage (#371)

This commit is contained in:
Xu Jun
2020-09-05 14:48:08 +08:00
committed by GitHub
parent c8df3f6eed
commit 2e0cef3ef1
4 changed files with 17 additions and 15 deletions

View File

@ -335,14 +335,14 @@ wasm_native_init()
#if WASM_ENABLE_LIBC_BUILTIN != 0
n_native_symbols = get_libc_builtin_export_apis(&native_symbols);
if (!wasm_native_register_natives("env",
native_symbols, n_native_symbols))
native_symbols, n_native_symbols))
return false;
#endif /* WASM_ENABLE_LIBC_BUILTIN */
#if WASM_ENABLE_SPEC_TEST
n_native_symbols = get_spectest_export_apis(&native_symbols);
if (!wasm_native_register_natives("spectest",
native_symbols, n_native_symbols))
native_symbols, n_native_symbols))
return false;
#endif /* WASM_ENABLE_SPEC_TEST */