Xu Jun and GitHub
fd9cce0eef
Add fast interpreter offset overflow check ( #1076 )
...
* check fast interpreter offset overflow
2022-04-07 21:07:32 +08:00
Xu Jun and GitHub
24afd4e7cb
Preserve execution memory for debug instance ( #1072 )
...
During debugging, the debug client may request to malloc a memory space
to evaluate the user expressions. If we malloc memory from the linear memory,
it may fail when the thread is in stop status. We preserve a buffer during
creating debug instance, and use a simple bump pointer allocator to serve lldb's
memory request.
2022-04-04 08:23:55 +08:00
Xu Jun and GitHub
f0dc6a3015
Fix fast interpreter constant space overflow issue ( #1071 )
...
Fix the potential integer overflow of const index in const space of fast interpreter,
emit i32/i64.const opcode when the const index is larger than INT32_MAX.
And add check for the function local cell num.
2022-04-04 07:55:37 +08:00
Xu Jun and GitHub
7a0ec1cd17
Use nanosecond for atomic wait ( #1041 )
...
Fix issue reported by #1038
2022-03-10 19:43:27 +08:00
Xu Jun and GitHub
3fe191b0df
[debugger enhance] don't block gdbserver thread while executing ( #989 )
...
Allow to set break point again when all break points are removed and
wasm app starts running.
2022-02-16 17:35:35 +08:00
Xu Jun and GitHub
5f8c7655a7
Fix pthread_getspecific return value ( #999 )
...
Fix pthread_getspecific return value as mentioned in #995
2022-02-05 22:45:59 +08:00
Xu Jun and GitHub
68fd6454c2
Fix debug thread not created issue ( #983 )
...
And fix a double free issue when starting debug server failed
2022-01-26 09:56:01 +08:00
Xu Jun and GitHub
90a0057d33
Implement pthread_cond_broadcast wrapper for lib-pthread ( #982 )
...
Implement pthread_cond_broadcast wrapper for lib-pthread
- support pthread_cond_broadcast wrapper for posix/linux-sgx/windows
- update document for building multi-thread wasm app with emcc
2022-01-25 09:28:02 +08:00
Xu Jun and GitHub
ee97e30a1a
Fix pointer unchecked issue in thread-mgr.c ( #960 )
...
And refine the code format of thread_manager.h
2022-01-14 17:57:59 +08:00
Xu Jun and GitHub
2c3f284b85
Add extern "C" in libc-builtin-sysroot pthread.h ( #933 )
...
Add extern "C" in libc-builtin-sysroot pthread.h to fix mulit-thread
wasm app compiling error with C++ compiler
2022-01-04 20:37:01 +08:00
Xu Jun and GitHub
ac3f7dcc0e
Enable source debugger CI on windows and darwin ( #912 )
2021-12-24 16:57:23 +08:00
Xu Jun and GitHub
ccb2de35d7
Enable source debugging feature for windows platform ( #910 )
...
- use platform independent data types in debug-engine library
- add os_socket APIs and provide windows and posix implementation
- avoid using platform related header files in non-platform layer
- use format specifiers macros for sprintf and sscanf
- change thread handle type from uint64 to korp_tid
- add lock when sending socket packet to avoid thread racing
2021-12-22 19:52:07 +08:00
Xu Jun and GitHub
4258b24bcc
add lldb patch to attribution ( #900 )
2021-12-15 18:38:27 +08:00
Xu Jun and GitHub
45ace31d2b
fix definition of int64_t in libc-builtin-sysroot ( #898 )
2021-12-15 03:32:29 -06:00
Xu Jun and GitHub
b9fd8f916b
update IoT cloud demo ( #876 )
...
* update IoT APP store demo
* update IoT app store apps
* update IoT cloud demo document
* [Cloud demo] mount app store between two dockers
* [Cloud demo] update restart policy
* [Cloud demo] update help page
* [Cloud demo] update online demo address
2021-12-07 20:19:23 +08:00
Xu Jun and GitHub
a06ede0de1
update source debugging document ( #872 )
2021-12-06 20:15:19 +08:00
Xu Jun and GitHub
2af5ae5abb
[source debug] refine some code in source debugging ( #856 )
...
- move the wait_cond from exec_env to debug_instance, so the debug thread can be waken up by any threads
- process more general query message from debugger
- refine debug instance create/destroy mechanism
- avoid creating debug instance during module instantiating
- avoid blocking execution thread during creating debug instance
- update related documents
2021-12-06 10:25:38 +08:00
Xu Jun and GitHub
9b0b33e4ae
fix duplicated debug instance id in multiple native thread issue ( #847 )
...
The debug_instance_list is not protected by mutex, and the debug instance uses
the length of this list as its id. If several threads create debug instance at the
same time, they may get duplicated/same ids. This patch adds mutex to protect
this list.
2021-11-25 12:15:37 +08:00
Xu Jun and GitHub
703e724c99
[source debug] process ModuleInfo query message ( #815 )
2021-11-02 12:09:15 +08:00
Xu Jun and GitHub
83df8600f7
Support random debug port by assigning port = 0 ( #807 )
...
Support random debug port by assigning port = 0,
and update help and document.
2021-10-30 02:44:41 -05:00
Xu Jun and GitHub
164c3bff69
Fix lldb wasm patch to enable source debugging for windows ( #806 )
2021-10-27 21:26:53 +08:00
Xu Jun and GitHub
0be1f687af
Fix source debugging issues ( #776 )
...
- fix data race issue between debug control thread and main thread
- fix possible memory leaks in breakpoints list
- fix memory uninitialized issues
- remove unused data structures
- add more checks when handling packet and args
- fix mini-loader issues
- fix config_common.cmake fast interp prompt issue
2021-10-09 15:56:58 +08:00
Xu Jun and GitHub
f637438e4e
Spread module custom data to all threads, enable libc-builtin float print ( #633 )
2021-05-19 14:57:31 +08:00
Xu Jun and GitHub
684d766e2b
Refine aot call func procedure and fix zephyr timer overflow issue ( #617 )
...
1. Refine the aot call function procedure
2. fix timer integer overflow issue on zephyr platform
3. move wasm_exec_env_set_thread_info into lower layer
2021-04-19 21:06:56 +08:00
Xu Jun and GitHub
09eb858a02
add realloc wrapper, fix pthread_join overwrite issue ( #605 )
2021-04-09 15:27:12 +08:00
Xu Jun and GitHub
22bcfe204e
fix aux stack overwritten issue when lib-pthread is enabled ( #596 )
2021-04-01 15:07:00 +08:00
Xu Jun and GitHub
621231a48b
Create CI script for android platform ( #591 )
2021-03-24 18:05:23 +08:00
fc50404115
add uvwasi implementation to support wasi on windows [experimental] ( #534 )
...
add uvwasi implementation to support wasi on windows [experimental] and update windows.yml
Co-authored-by: Wenyong Huang <wenyong.huang@intel.com >
2021-02-22 14:17:46 +08:00
Xu Jun and GitHub
370cc83fbd
Fix loader fail to lookup registered native symbol issue ( #529 )
2021-02-19 11:14:40 +08:00
Xu Jun and GitHub
52f422dba0
fix pthread library issues: ( #522 )
...
1. pthread_join can't get return value from exited threads
2. pthread_cond_wait return success when timeout
2021-02-09 10:36:44 +08:00
Xu Jun and GitHub
5947ea492d
Update invokeNative_em64.asm ( #511 )
...
Fix the issue of WIN64 parameter passing
2021-02-04 08:50:15 +08:00
Xu Jun and GitHub
a84d51271c
Support AssemblyScript's new/retain/release APIs ( #460 )
2020-12-07 16:37:49 +08:00
Xu Jun and GitHub
b929ee3f71
Update windows build step, add CI support for windows ( #420 )
2020-10-13 12:13:18 +08:00
Xu Jun and GitHub
c87f28eacd
support tail-call in AoT ( #419 )
2020-10-13 08:34:31 +08:00
Xu Jun and GitHub
c13746c22c
move memory_data out from MemoryInstance, add call stack ( #408 )
2020-09-28 18:38:15 +08:00
Xu Jun and GitHub
4bfcbc2cab
fix problem about local in fast-interp ( #406 )
2020-09-27 18:05:20 +08:00
Xu Jun and GitHub
dc4b8c4822
remove errno in wasm_application_execute_func ( #396 )
2020-09-23 11:50:37 +08:00
Xu Jun and GitHub
21850aeb0a
add more build option and samples in CI ( #394 )
...
* Update linux.yml
* Create mac.yml
2020-09-20 13:16:13 +08:00
Xu Jun and GitHub
0226dbbb3d
introduce WAMR memory profiling tool (experimental) ( #390 )
2020-09-18 18:04:56 +08:00
Xu Jun and GitHub
547298d4e7
Add macro to exclude sgx wasi/pthread ocalls if not needed ( #384 )
2020-09-15 15:49:09 +08:00
Xu Jun and GitHub
2499e1ec4b
Fix issue and compilation warnings of new function call APIs ( #383 )
2020-09-14 15:30:42 +08:00
Xu Jun and GitHub
2135badc54
fix problem in wasm_module_malloc ( #374 )
2020-09-07 17:32:00 +08:00
Xu Jun and GitHub
2e0cef3ef1
fix exec_env not checked issue, export __heap_base and __data_end in sample to decrease memory usage ( #371 )
2020-09-05 14:48:08 +08:00
Xu Jun and GitHub
e113298d7f
use llvm release 10.x ( #365 )
2020-09-01 16:00:15 +08:00
Xu Jun and GitHub
6b5f376e79
fix issue in mini-loader ( #353 )
2020-08-14 19:58:19 +08:00
Xu Jun and GitHub
1266ebb222
fix coding style for windows build patch ( #350 )
2020-08-13 16:40:19 +08:00
Xu Jun and GitHub
21efe12505
add win64 support ( #348 )
2020-08-13 14:41:20 +08:00
Xu Jun and GitHub
6aeefbebb2
implement atomics opcodes for interpreter ( #344 )
2020-08-10 19:43:58 +08:00
Xu Jun and GitHub
2db335c6d4
add spawn thread API and sample ( #333 )
2020-08-04 17:40:45 +08:00
Xu Jun and GitHub
29e45e1527
implement atomic opcode in AOT/JIT ( #329 )
2020-08-03 11:30:26 +08:00
Xu Jun and GitHub
32b2943369
enable pthread for AoT && update AOT current version to 2 ( #311 )
2020-07-16 20:35:04 +08:00
Xu Jun and GitHub
e3c04e6684
support pthread_key related APIs ( #288 )
2020-06-18 11:37:31 +08:00
Xu Jun and GitHub
acb68c64c2
update doc for multi-thread ( #284 )
2020-06-16 15:01:35 +08:00
Xu Jun and GitHub
d98ab63e5c
Enable shared memory && add pthread support ( #282 )
2020-06-15 19:04:04 +08:00
Xu Jun and GitHub
5e196253f6
Fix function type not set issue of aot_call_indirect ( #229 )
...
Add registration of libc-wasi to 'wasi_snapshot_preview1' to support cargo-wasi
change zephyr build method from cmake to west
fix problem when preserve space for local vars
fix wasi authority problem
2020-04-07 11:04:46 +08:00
Xu Jun and GitHub
d9890d2ccb
re-org ems mem allocator source codes, update prot_wamr.md ( #217 )
2020-03-30 11:06:39 +08:00
31feaa0a88
change printf to puts in assemblyscript to match the signature ( #215 )
...
Co-authored-by: Xu Jun <jun1.xu@intel.com >
2020-03-27 16:51:15 +08:00
75009a2421
fix sgx compile and link error, preserve space for locals before set/tee opcode ( #214 )
...
Co-authored-by: Xu Jun <jun1.xu@intel.com >
2020-03-27 09:28:30 +08:00
Xu Jun and GitHub
8ae161b779
fix vprintf in android platform, avoid importing abort in assemblyscript ( #210 )
2020-03-23 22:30:28 +08:00
6523868a9a
fix aot load import global bug && enhance dead code processing ( #203 )
...
Co-authored-by: Xu Jun <jun1.xu@intel.com >
2020-03-17 17:51:51 +08:00
f1a0e75ab7
re-org platform APIs, simplify porting process ( #201 )
...
Co-authored-by: Xu Jun <jun1.xu@intel.com >
2020-03-16 16:43:57 +08:00
Xu Jun and GitHub
381859d530
fix unaligned 64bit access on MCU ( #192 )
2020-03-10 11:48:28 +08:00
057c849fc0
re-org bh_definition.c && introduce wamr fast interpreter ( #189 )
...
Co-authored-by: Xu Jun
2020-03-07 22:20:38 +08:00
Xu Jun
ccdba48d30
update menuconfig.sh
2020-02-21 23:03:58 +08:00
Xu Jun and GitHub
5a10651dd0
support app framework base library in assemblyscript ( #164 )
2020-02-13 15:51:22 +08:00