-
Notifications
You must be signed in to change notification settings - Fork 625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge branch main into dev/multi_memory #3738
Commits on Jul 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 583fa52 - Browse repository at this point
Copy the full SHA 583fa52View commit details
Commits on Jul 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0d8ffeb - Browse repository at this point
Copy the full SHA 0d8ffebView commit details
Commits on Jul 22, 2024
-
spec-test-script/runtest.py: Use a shorter timeout when expected to f…
…ail (#3647) This is a band-aid fix; ideally we should wait for the expected failure message directly with a timeout, not the successful prompt as we currently do.
Configuration menu - View commit details
-
Copy full SHA for b05fdfd - Browse repository at this point
Copy the full SHA b05fdfdView commit details -
Remove a few hardcoded spec test knowledge from the core library (#3648)
Tweak the stack sizes in the spec test runner instead.
Configuration menu - View commit details
-
Copy full SHA for 50f2849 - Browse repository at this point
Copy the full SHA 50f2849View commit details -
Configuration menu - View commit details
-
Copy full SHA for 058bc47 - Browse repository at this point
Copy the full SHA 058bc47View commit details
Commits on Jul 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b086d58 - Browse repository at this point
Copy the full SHA b086d58View commit details -
Add APIs into wasm_c_api.h to summary wasm function execution duration (
#3639) - `wasm_instance_sum_wasm_exec_time()` -> `wasm_runtime_sum_wasm_exec_time()` - `wasm_instance_get_wasm_func_exec_time()` -> `wasm_runtime_get_wasm_func_exec_time()`
Configuration menu - View commit details
-
Copy full SHA for 5e7d3ed - Browse repository at this point
Copy the full SHA 5e7d3edView commit details -
spec-test-script: Make case_last_words larger (#3651)
The current size is usually too small to contain useful info for post mortem investigations.
Configuration menu - View commit details
-
Copy full SHA for 5744e11 - Browse repository at this point
Copy the full SHA 5744e11View commit details -
Configuration menu - View commit details
-
Copy full SHA for d7521ee - Browse repository at this point
Copy the full SHA d7521eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 79dacfc - Browse repository at this point
Copy the full SHA 79dacfcView commit details
Commits on Jul 24, 2024
-
Set compile symbol visibility to hidden in cmake (#3655)
Set compile symbol visibility to hidden in cmake of root folder and product-mini/platforms/linux.
Configuration menu - View commit details
-
Copy full SHA for 5be8f35 - Browse repository at this point
Copy the full SHA 5be8f35View commit details -
wamrc: Add --mllvm= option (#3658)
This allows users to specify llvm command line options, similarly to clang's -mllvm option. My motivations: * -debug and friends * -mtext-section-literals for xtensa
Configuration menu - View commit details
-
Copy full SHA for b300797 - Browse repository at this point
Copy the full SHA b300797View commit details
Commits on Jul 25, 2024
-
wamr-compiler: Avoid size-level tweak if target is specified (#3659)
If target is specified, assume a cross-build. Partly fixes: #3356
Configuration menu - View commit details
-
Copy full SHA for b21e3fd - Browse repository at this point
Copy the full SHA b21e3fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for c05b93f - Browse repository at this point
Copy the full SHA c05b93fView commit details -
aot compiler: Enlarge AOTNativeSymbol->symbol (#3662)
The old value was not enough for wasm_externref_obj_to_internal_obj, which is 34 characters long.
Configuration menu - View commit details
-
Copy full SHA for a055e0b - Browse repository at this point
Copy the full SHA a055e0bView commit details -
aot compiler: Bail out on too long native symbol names (#3663)
The old code was silently truncating long names.
Configuration menu - View commit details
-
Copy full SHA for 2f147fa - Browse repository at this point
Copy the full SHA 2f147faView commit details -
spec-test-script: Skip a few tests for xtensa qemu (#3664)
Because these test cases require more memory than what nuttx on esp32s3 qemu can afford.
Configuration menu - View commit details
-
Copy full SHA for 83b3655 - Browse repository at this point
Copy the full SHA 83b3655View commit details
Commits on Jul 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 4dfdbbb - Browse repository at this point
Copy the full SHA 4dfdbbbView commit details -
Support more features for rt-thread (#3661)
1, enable thread mgr 2, enable libc wasi 3, enable libc wasi threads 4, specify a function name of the module to run rather main
Configuration menu - View commit details
-
Copy full SHA for 6e727dc - Browse repository at this point
Copy the full SHA 6e727dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 22df091 - Browse repository at this point
Copy the full SHA 22df091View commit details -
Zephyr User Mode Support (#3650)
Add support for the [Zephyr Usermode](https://docs.zephyrproject.org/latest/kernel/usermode/index.html) to the Zephyr port. The following changes are applied: - Fix `signbit`, check if it is defined already and only implement it, if not - Introduce `sys_mutex` and `sys_sem` in favour of `k_mutex` and `k_sem`, when `CONFIG_USERMODE` is enabled - Remove the installation of the `_stdout_hook_iwasm()` when `CONFIG_USERMODE` is enabled, otherwise this causes MPU errors since the std hook is in the kernel space - Add a thread name for debugging
Configuration menu - View commit details
-
Copy full SHA for 4c5f35b - Browse repository at this point
Copy the full SHA 4c5f35bView commit details
Commits on Jul 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 84b5221 - Browse repository at this point
Copy the full SHA 84b5221View commit details -
spec_test_on_nuttx.yml: Record more logs (#3670)
Upload artifacts including nuttx config/image and wasm/aot modules for post-mortem investigations.
Configuration menu - View commit details
-
Copy full SHA for 3b56e7c - Browse repository at this point
Copy the full SHA 3b56e7cView commit details
Commits on Jul 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a9cd8ba - Browse repository at this point
Copy the full SHA a9cd8baView commit details
Commits on Jul 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6be4b53 - Browse repository at this point
Copy the full SHA 6be4b53View commit details
Commits on Jul 31, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c3bd6b4 - Browse repository at this point
Copy the full SHA c3bd6b4View commit details
Commits on Aug 2, 2024
-
build(deps): bump tensorflow in /core/iwasm/libraries/wasi-nn/test (#…
…3675) Bumps [tensorflow](https://github.com/tensorflow/tensorflow) from 2.11.1 to 2.12.1. - [Release notes](https://github.com/tensorflow/tensorflow/releases) - [Changelog](https://github.com/tensorflow/tensorflow/blob/master/RELEASE.md) - [Commits](tensorflow/tensorflow@v2.11.1...v2.12.1) --- updated-dependencies: - dependency-name: tensorflow dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 0a56abc - Browse repository at this point
Copy the full SHA 0a56abcView commit details -
spec_test_on_nuttx.yml: Retire CONFIG_EOL_IS_LF (#3676)
It has been removed in nuttx while ago: apache/nuttx#8628
Configuration menu - View commit details
-
Copy full SHA for 08fad88 - Browse repository at this point
Copy the full SHA 08fad88View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ce242b - Browse repository at this point
Copy the full SHA 3ce242bView commit details
Commits on Aug 3, 2024
-
Fix a compilation warning (#3682)
Fix: ``` wamr/core/iwasm/compilation/aot_llvm.c: In function ‘insert_native_symbol’: wamr/core/iwasm/compilation/aot_llvm.c:3290:28: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] 3290 | if (ret < 0 || ret + 1 > sizeof(sym->symbol)) { | ^ ``` Signed-off-by: Huang Qi <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c3dd559 - Browse repository at this point
Copy the full SHA c3dd559View commit details
Commits on Aug 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8a2e151 - Browse repository at this point
Copy the full SHA 8a2e151View commit details
Commits on Aug 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6ddaeca - Browse repository at this point
Copy the full SHA 6ddaecaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1362a30 - Browse repository at this point
Copy the full SHA 1362a30View commit details
Commits on Aug 12, 2024
-
posix_thread.c: Restore old signal alternate stack before thread exit (…
…#3693) Some host environment may also create an signal alternate stack and access it after the wasm runtime exits, the runtime should backup the stack info and restore it before thread exits. The issue was found in golang: ``` signal 23 received on thread with on signal stack fatal error: non-Go code disabled signaltstack ```
Configuration menu - View commit details
-
Copy full SHA for da31c07 - Browse repository at this point
Copy the full SHA da31c07View commit details
Commits on Aug 13, 2024
-
wamr-test-suites: Clean up generated tmp files after spec test (#3700)
Add all possible generated tmp files to the list, those not actually generated will be simply ignored in the deletion process.
Configuration menu - View commit details
-
Copy full SHA for 4e31bd6 - Browse repository at this point
Copy the full SHA 4e31bd6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 140ff25 - Browse repository at this point
Copy the full SHA 140ff25View commit details -
libc-wasi: Make rights of STDIN/STDOUT/STDERR fixed and overlook thei…
Configuration menu - View commit details
-
Copy full SHA for 67fa155 - Browse repository at this point
Copy the full SHA 67fa155View commit details -
libc-builtin: Fix function prototype for wasm_runtime_module_realloc (#…
…3702) Fix: ``` wamr/core/iwasm/libraries/libc-builtin/libc_builtin_wrapper.c:20:1: warning: type of 'wasm_runtime_module_realloc' does not match original declaration [-Wlto-type-mismatch] wamr/core/iwasm/common/wasm_runtime_common.c:3033:1: note: return value type mismatch wamr/core/iwasm/common/wasm_runtime_common.c:3033:1: note: type 'uint64' should match type 'uint32' wamr/core/iwasm/common/wasm_runtime_common.c:3033:1: note: 'wasm_runtime_module_realloc' was previously declared here wamr/core/iwasm/common/wasm_runtime_common.c:3033:1: note: code may be misoptimized unless '-fno-strict-aliasing' is used ```
Configuration menu - View commit details
-
Copy full SHA for a83adcc - Browse repository at this point
Copy the full SHA a83adccView commit details
Commits on Aug 14, 2024
-
[refactoring] Extract read leb to a separate file, share the code bet…
…ween loader and mini loader (#3701) There's probably a number of other places where the bh_leb_read could be used (e.g. aot loader) but I'm making the change as small as possible. Further refactoring can be done later.
Configuration menu - View commit details
-
Copy full SHA for 37d7439 - Browse repository at this point
Copy the full SHA 37d7439View commit details -
debug-interp: Only add lock when signal_flag is SIG_SINGSTEP (#3704)
As reported in #3500, when debug interpreter is enabled, the classic interpreter performs a lock operation to read `exec_env->current_status->signal_flag` and do further handling before fetching next opcode, which makes the interpreter run slower. This PR atomic loads the `exec_env->current_status->signal_flag` without mutex lock when 32-bit atomic load is supported, and only adding lock for further handling when the signal_flag is WAMR_SIG_SINGSTEP, which improves the performance.
Configuration menu - View commit details
-
Copy full SHA for da25906 - Browse repository at this point
Copy the full SHA da25906View commit details -
Fix compilation warnings (#3707)
Compilation warnings were reported on mac: ``` core/shared/mem-alloc/ems/ems_gc.c:454:22: warning: passing arguments to 'wasm_runtime_gc_prepare' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gct_vm_gc_prepare(NULL); ^ core/shared/mem-alloc/ems/ems_gc.c:466:23: warning: passing arguments to 'wasm_runtime_gc_finalize' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gct_vm_gc_finished(NULL); ^ 2 warnings generated. ```
Configuration menu - View commit details
-
Copy full SHA for 5b8dfbc - Browse repository at this point
Copy the full SHA 5b8dfbcView commit details -
test_wamr.sh: Fix build wabt tool (#3703)
And fix a typo in ATTRIBUTIONS.md.
Configuration menu - View commit details
-
Copy full SHA for cce48a0 - Browse repository at this point
Copy the full SHA cce48a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 740f499 - Browse repository at this point
Copy the full SHA 740f499View commit details
Commits on Aug 15, 2024
-
NuttX: Retire CONFIG_ARCH_RV32IM and CONFIG_ARCH_RV64GC (#3717)
These symbols had been removed from NuttX in 2022, so it's time to remove references to them.
Configuration menu - View commit details
-
Copy full SHA for 000680f - Browse repository at this point
Copy the full SHA 000680fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 58ca02b - Browse repository at this point
Copy the full SHA 58ca02bView commit details -
Configuration menu - View commit details
-
Copy full SHA for b845e2e - Browse repository at this point
Copy the full SHA b845e2eView commit details
Commits on Aug 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 63df2cf - Browse repository at this point
Copy the full SHA 63df2cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for a44c487 - Browse repository at this point
Copy the full SHA a44c487View commit details -
aot compiler: Track non-0x00 tableindex as ref types use (#3695)
Any use of a table index that isn't exactly a null byte (`0x00`) means that the module makes use of the reference types proposal. This is important to track because `aot_compiler.c` will blindly assume that all table indices are a single byte long otherwise. This fixes a crash in WAMR for modules that contain multi-byte encodings of table indices in `call_indirect` but make no other use of reference types features.
Configuration menu - View commit details
-
Copy full SHA for 59f761b - Browse repository at this point
Copy the full SHA 59f761bView commit details -
aot compiler: Fix NaN handling for opcode f32/f64.const in XIP mode (#…
…3721) If the value of a float constant is an NaN, the aot compiler creates an alloca, stores the converted i32 const into it and then loads f32 from it again, which may introduce a relocation in the AOT file and is not allowed for XIP mode.
Configuration menu - View commit details
-
Copy full SHA for 4c12771 - Browse repository at this point
Copy the full SHA 4c12771View commit details
Commits on Aug 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 67c33a2 - Browse repository at this point
Copy the full SHA 67c33a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 88caa0c - Browse repository at this point
Copy the full SHA 88caa0cView commit details -
Fix table idx resolving in op call_indirect/return_call_indirect (#3726)
The table index in the call_indirect/return_call_indirect opcode should be one byte 0x00 when ref-types/GC isn't enabled, and should be treated as leb u32 when ref-types/GC is enabled. And make aot compiler bail out if ref-types/GC is disabled by command line argument while ref-types instructions are used.
Configuration menu - View commit details
-
Copy full SHA for 97c95a2 - Browse repository at this point
Copy the full SHA 97c95a2View commit details
Commits on Aug 20, 2024
-
compilation: Use the dedicated stack-sizes section only for AOT (#3732)
For JIT, we naturally use mach-o on macOS, where the section name we currently use is not valid and ends up with the errors like: ``` LLVM ERROR: Global variable '__orc_lcl.aot_stack_sizes.0' has an invalid section specifier '.aot_stack_sizes': mach-o section specifier requires a segment and section separated by a comma. ``` Because the dedicated section is not necessary for JIT, this commit simply stops using it. Fixes: #3730
Configuration menu - View commit details
-
Copy full SHA for 581e1d9 - Browse repository at this point
Copy the full SHA 581e1d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6fdad99 - Browse repository at this point
Copy the full SHA 6fdad99View commit details -
Configuration menu - View commit details
-
Copy full SHA for c04ef6b - Browse repository at this point
Copy the full SHA c04ef6bView commit details -
Fix load error not reported when magic header is invalid (#3734)
When AOT isn't enabled and the input is a wasm file, wasm_runtime_load doesn't report error. Same when interpreter isn't enabled and the input is AOT file. This PR makes wasm_runtime_load report error "magic header not detected" for such situations.
Configuration menu - View commit details
-
Copy full SHA for d67cc26 - Browse repository at this point
Copy the full SHA d67cc26View commit details -
Use node 18.x to build vscode extension (#3735)
Fix the issue of releasing wamr-ide vscode extension: https://github.com/bytecodealliance/wasm-micro-runtime/actions/runs/10467675321/job/28987014745
Configuration menu - View commit details
-
Copy full SHA for f4383a9 - Browse repository at this point
Copy the full SHA f4383a9View commit details