Commit Graph
54 Commits
Author SHA1 Message Date
Xu JunandGitHub 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 JunandGitHub 4258b24bcc add lldb patch to attribution (#900) 2021-12-15 18:38:27 +08:00
Xu JunandGitHub 45ace31d2b fix definition of int64_t in libc-builtin-sysroot (#898) 2021-12-15 03:32:29 -06:00
Xu JunandGitHub 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 JunandGitHub a06ede0de1 update source debugging document (#872) 2021-12-06 20:15:19 +08:00
Xu JunandGitHub 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 JunandGitHub 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 JunandGitHub 703e724c99 [source debug] process ModuleInfo query message (#815) 2021-11-02 12:09:15 +08:00
Xu JunandGitHub 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 JunandGitHub 164c3bff69 Fix lldb wasm patch to enable source debugging for windows (#806) 2021-10-27 21:26:53 +08:00
Xu JunandGitHub 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 JunandGitHub f637438e4e Spread module custom data to all threads, enable libc-builtin float print (#633) 2021-05-19 14:57:31 +08:00
Xu JunandGitHub 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 JunandGitHub 09eb858a02 add realloc wrapper, fix pthread_join overwrite issue (#605) 2021-04-09 15:27:12 +08:00
Xu JunandGitHub 22bcfe204e fix aux stack overwritten issue when lib-pthread is enabled (#596) 2021-04-01 15:07:00 +08:00
Xu JunandGitHub 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 JunandGitHub 370cc83fbd Fix loader fail to lookup registered native symbol issue (#529) 2021-02-19 11:14:40 +08:00
Xu JunandGitHub 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 JunandGitHub 5947ea492d Update invokeNative_em64.asm (#511)
Fix the issue of WIN64 parameter passing
2021-02-04 08:50:15 +08:00
Xu JunandGitHub a84d51271c Support AssemblyScript's new/retain/release APIs (#460) 2020-12-07 16:37:49 +08:00
Xu JunandGitHub b929ee3f71 Update windows build step, add CI support for windows (#420) 2020-10-13 12:13:18 +08:00
Xu JunandGitHub c87f28eacd support tail-call in AoT (#419) 2020-10-13 08:34:31 +08:00
Xu JunandGitHub c13746c22c move memory_data out from MemoryInstance, add call stack (#408) 2020-09-28 18:38:15 +08:00
Xu JunandGitHub 4bfcbc2cab fix problem about local in fast-interp (#406) 2020-09-27 18:05:20 +08:00
Xu JunandGitHub dc4b8c4822 remove errno in wasm_application_execute_func (#396) 2020-09-23 11:50:37 +08:00
Xu JunandGitHub 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 JunandGitHub 0226dbbb3d introduce WAMR memory profiling tool (experimental) (#390) 2020-09-18 18:04:56 +08:00
Xu JunandGitHub 547298d4e7 Add macro to exclude sgx wasi/pthread ocalls if not needed (#384) 2020-09-15 15:49:09 +08:00
Xu JunandGitHub 2499e1ec4b Fix issue and compilation warnings of new function call APIs (#383) 2020-09-14 15:30:42 +08:00
Xu JunandGitHub 2135badc54 fix problem in wasm_module_malloc (#374) 2020-09-07 17:32:00 +08:00
Xu JunandGitHub 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 JunandGitHub e113298d7f use llvm release 10.x (#365) 2020-09-01 16:00:15 +08:00
Xu JunandGitHub 6b5f376e79 fix issue in mini-loader (#353) 2020-08-14 19:58:19 +08:00
Xu JunandGitHub 1266ebb222 fix coding style for windows build patch (#350) 2020-08-13 16:40:19 +08:00
Xu JunandGitHub 21efe12505 add win64 support (#348) 2020-08-13 14:41:20 +08:00
Xu JunandGitHub 6aeefbebb2 implement atomics opcodes for interpreter (#344) 2020-08-10 19:43:58 +08:00
Xu JunandGitHub 2db335c6d4 add spawn thread API and sample (#333) 2020-08-04 17:40:45 +08:00
Xu JunandGitHub 29e45e1527 implement atomic opcode in AOT/JIT (#329) 2020-08-03 11:30:26 +08:00
Xu JunandGitHub 32b2943369 enable pthread for AoT && update AOT current version to 2 (#311) 2020-07-16 20:35:04 +08:00
Xu JunandGitHub e3c04e6684 support pthread_key related APIs (#288) 2020-06-18 11:37:31 +08:00
Xu JunandGitHub acb68c64c2 update doc for multi-thread (#284) 2020-06-16 15:01:35 +08:00
Xu JunandGitHub d98ab63e5c Enable shared memory && add pthread support (#282) 2020-06-15 19:04:04 +08:00
Xu JunandGitHub 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 JunandGitHub 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 JunandGitHub 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 JunandGitHub 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 JunandGitHub 5a10651dd0 support app framework base library in assemblyscript (#164) 2020-02-13 15:51:22 +08:00