wasm-micro-runtime/core/shared/utils
Wenyong Huang 0ee5ffce85
Refactor APIs and data structures as preliminary work for Memory64 (#3209)
# Change the data type representing linear memory address from u32 to u64

## APIs signature changes
- (Export)wasm_runtime_module_malloc
  - wasm_module_malloc
    - wasm_module_malloc_internal
  - aot_module_malloc
    - aot_module_malloc_internal
- wasm_runtime_module_realloc
  - wasm_module_realloc
    - wasm_module_realloc_internal
  - aot_module_realloc
    - aot_module_realloc_internal
- (Export)wasm_runtime_module_free
  - wasm_module_free
    - wasm_module_free_internal
  - aot_module_malloc
    - aot_module_free_internal
- (Export)wasm_runtime_module_dup_data
  - wasm_module_dup_data
  - aot_module_dup_data
- (Export)wasm_runtime_validate_app_addr
- (Export)wasm_runtime_validate_app_str_addr
- (Export)wasm_runtime_validate_native_addr
- (Export)wasm_runtime_addr_app_to_native
- (Export)wasm_runtime_addr_native_to_app
- (Export)wasm_runtime_get_app_addr_range
- aot_set_aux_stack
- aot_get_aux_stack
- wasm_set_aux_stack
- wasm_get_aux_stack
- aot_check_app_addr_and_convert, wasm_check_app_addr_and_convert
  and jit_check_app_addr_and_convert
- wasm_exec_env_set_aux_stack
- wasm_exec_env_get_aux_stack
- wasm_cluster_create_thread
- wasm_cluster_allocate_aux_stack
- wasm_cluster_free_aux_stack

## Data structure changes
- WASMModule and AOTModule
  - field aux_data_end, aux_heap_base and aux_stack_bottom
- WASMExecEnv
  - field aux_stack_boundary and aux_stack_bottom
- AOTCompData
  - field aux_data_end, aux_heap_base and aux_stack_bottom
- WASMMemoryInstance(AOTMemoryInstance)
  - field memory_data_size and change __padding to is_memory64
- WASMModuleInstMemConsumption
  - field total_size and memories_size
- WASMDebugExecutionMemory
  - field start_offset and current_pos
- WASMCluster
  - field stack_tops

## Components that are affected by the APIs and data structure changes
- libc-builtin
- libc-emcc
- libc-uvwasi
- libc-wasi
- Python and Go Language Embedding
- Interpreter Debug engine
- Multi-thread: lib-pthread, wasi-threads and thread manager
2024-03-12 11:38:50 +08:00
..
uncommon Enable Windows MinGW support (#1000) 2022-02-06 13:20:38 +08:00
bh_assert.c Use logger for runtime error/debug prints (#3097) 2024-02-06 13:02:54 +08:00
bh_assert.h Fix bh_assert for 64-bit platforms (#2071) 2023-03-28 12:18:39 +08:00
bh_atomic.h Refactor APIs and data structures as preliminary work for Memory64 (#3209) 2024-03-12 11:38:50 +08:00
bh_bitmap.c Fix data/elem drop (#2747) 2023-11-18 08:50:16 +08:00
bh_bitmap.h Fix compilation warnings on Windows (#2868) 2023-12-06 16:12:33 +08:00
bh_common.c Remove unnecessary and extra zero length check in mem functions' macro (#2428) 2023-08-08 08:52:25 +08:00
bh_common.h Remove unnecessary and extra zero length check in mem functions' macro (#2428) 2023-08-08 08:52:25 +08:00
bh_hashmap.c Fix some issues reported by CodeQL (#3064) 2024-01-23 21:38:30 +08:00
bh_hashmap.h Limit the minimal size of bh_hashmap (#2073) 2023-03-28 14:50:31 +08:00
bh_list.c Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
bh_list.h Fix issue in multi-thread sample (#1458) 2022-09-07 12:56:50 +08:00
bh_log.c Forward log and log level to custom bh_log callback (#3070) 2024-01-24 13:05:07 +08:00
bh_log.h Forward log and log level to custom bh_log callback (#3070) 2024-01-24 13:05:07 +08:00
bh_platform.h Move generic parts of wasm_suspend_flags.h to bh_atomic.h (#2393) 2023-07-27 21:37:23 +08:00
bh_queue.c Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
bh_queue.h Suppress the warnings when building with GCC11 (#1622) 2022-10-20 21:26:57 +08:00
bh_vector.c Clear compilation warnings on Windows (#1307) 2022-07-21 09:32:28 +08:00
bh_vector.h Enable lock for Vector to protect wasm-c-api read/write/extend operations (#1010) 2022-03-23 11:42:57 +08:00
gnuc.h Implement suspend flags as atomic variable (#2361) 2023-07-21 08:27:09 +08:00
runtime_timer.c Enhancements on wasm function execution time statistic (#2985) 2024-01-17 09:51:54 +08:00
runtime_timer.h Suppress the warnings when building with GCC11 (#1622) 2022-10-20 21:26:57 +08:00
SConscript add porting codes of rt-thread (#494) 2021-01-14 11:26:35 +08:00
shared_utils.cmake re-org platform APIs, simplify porting process (#201) 2020-03-16 16:43:57 +08:00