wasm-micro-runtime/core
Wenyong Huang 403a7d3f4f
Refine interp/aot string storage and emitting (#820)
Currently the string in the wasm/aot file will be duplicated and stored
into const string list/set in interpreter/aot loader, which leads to extra
unnecessary memory consumption if the file buffer can be referred to
after loading. We refine the string storage by:
- if the file buffer can be referred to after loading and it is writable, we
  reuse the file buffer to store the string but not store it into the const
  string set: move string backward and append '\0'
- emit string with '\0' only for XIP mode in which the AOT file is readonly
- if the file buffer cannot be referred to, e.g. in app manager, keep the
  same behavior as before

Signed-off-by: Wenyong Huang <wenyong.huang@intel.com>
2021-11-08 11:27:26 +08:00
..
app-framework Apply clang-format for more source files (#795) 2021-10-21 13:58:34 +08:00
app-mgr Apply clang-format for more source files (#795) 2021-10-21 13:58:34 +08:00
deps Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00
iwasm Refine interp/aot string storage and emitting (#820) 2021-11-08 11:27:26 +08:00
shared Implement os_time_get_boot_microsecond() for sgx platform (#818) 2021-11-06 15:58:21 +08:00
config.h Disable source debugging by default (#804) 2021-10-26 18:52:30 +08:00