Commit b25abd5
authored
Wasm workers (#12833)
* Add Wasm Workers
Add Wasm Workers
* Add TLS test, ES6ify.
* Update test
* Add TLS support to Wasm Workers
* Add C++11 thread_local keyword test.
* Add test for C11 _Thread_local.
* Add emscripten_malloc_wasm_worker and rename creation API a little.
* Add documentation for Wasm Workers.
* Flake and lint and fix build error
* Remove deps_info dependency that does not work in current setup
* __builtin_wasm_tls_align() can be zero
* Add more notes about __builtin_wasm_tls_align() being zero
* Add test for GCC __thread keyword.
* Fix test_wasm_worker_malloc
* Fix emscripten_lock_async_acquire()
* Fix thread stack creation.
* Fix wasm64 build
* Add slack to lock_busyspin_wait_acquire
* Fix typo in setting
* Remove removal of TextDecoder in threads.
* Fix non-Wasm Workers build
* Fix file system case sensitivity
* Fix Wasm Workers proxying mode generation.
* Skip TLS tests on Linux, they produce an internal compiler error.
* Fix typo
* Fix wasm_worker.h include from C code.
* Add library_wasm_worker_stub.c.
* Wasm Workers working on default runtime.
* flake
* Disable most wasm workers tests to debug CI
* Fix non-minimal runtime wasm workers startup. Add test for WASM_WORKERS=2 build mode.
* Simplify in MINIMAL_RUNTIME preamble assignment for wasm maximum memory.
* Fix USE_PTHREADS+WASM_WORKERS line.
* Add support for simultaneous pthreads + Wasm workers.
* Do not pass redundant TLS size to Wasm Worker creation side.
* Update emcc.py wasm worker deps
* Remove special handling of .S files in system_libs build
* Update documentation
* Add code size test.
* flake
* Update tests and wasm worker MT build
* Fix mt build
* Adjust mt build
* Update code size test
* Update hello worker wasm
* flake
* Address review: Allow building with -sSHARED_MEMORY and add a test. Move code from emcc.py to library_wasm_worker.js.
* Remove unnecessary dynCall statements
* Update mention of C11 and C++11 Atomics APIs
* Remove old code.
* Utilize runOnMainThread() in MINIMAL_RUNTIME ready handler.
* Simplify code
* #error quotes
* Clean typo
* Cleanup tests
* Update ChangeLog
* Fixes
* Add test files.
* Fix pthreads
* Remove moved test
* Address review
* Small code size optimization
* Small code size opt
* Flake
* Update Wasm Workers code size test1 parent a18bbf7 commit b25abd5
File tree
68 files changed
+3804
-36
lines changed- site/source
- _themes/emscripten_sphinx_rtd_theme/static/css
- docs/api_reference
- src
- system
- include/emscripten
- lib
- compiler-rt
- wasm_worker
- tests
- code_size
- wasm_worker
- tools
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
68 files changed
+3804
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
833 | 833 | | |
834 | 834 | | |
835 | 835 | | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
836 | 839 | | |
837 | 840 | | |
838 | 841 | | |
| |||
1424 | 1427 | | |
1425 | 1428 | | |
1426 | 1429 | | |
1427 | | - | |
| 1430 | + | |
| 1431 | + | |
1428 | 1432 | | |
1429 | 1433 | | |
1430 | | - | |
| 1434 | + | |
1431 | 1435 | | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
1432 | 1441 | | |
1433 | 1442 | | |
1434 | 1443 | | |
| |||
2064 | 2073 | | |
2065 | 2074 | | |
2066 | 2075 | | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
| 2080 | + | |
| 2081 | + | |
| 2082 | + | |
| 2083 | + | |
| 2084 | + | |
| 2085 | + | |
| 2086 | + | |
| 2087 | + | |
2067 | 2088 | | |
2068 | 2089 | | |
2069 | 2090 | | |
| |||
2803 | 2824 | | |
2804 | 2825 | | |
2805 | 2826 | | |
| 2827 | + | |
2806 | 2828 | | |
2807 | | - | |
2808 | 2829 | | |
2809 | 2830 | | |
2810 | 2831 | | |
| |||
2814 | 2835 | | |
2815 | 2836 | | |
2816 | 2837 | | |
| 2838 | + | |
| 2839 | + | |
| 2840 | + | |
| 2841 | + | |
| 2842 | + | |
| 2843 | + | |
| 2844 | + | |
| 2845 | + | |
| 2846 | + | |
| 2847 | + | |
| 2848 | + | |
2817 | 2849 | | |
2818 | 2850 | | |
2819 | 2851 | | |
| |||
Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| |||
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| 59 | + | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
0 commit comments