Skip to content
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

Wasm workers #12833

Merged
merged 67 commits into from
Mar 7, 2022
Merged
Changes from 1 commit
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
0f55bf4
Add Wasm Workers
juj Feb 7, 2022
fa21c46
Add TLS test, ES6ify.
juj Feb 7, 2022
f466e62
Update test
juj Feb 7, 2022
bd1e261
Add TLS support to Wasm Workers
juj Feb 15, 2022
ead8aa5
Add C++11 thread_local keyword test.
juj Feb 15, 2022
9545aeb
Add test for C11 _Thread_local.
juj Feb 15, 2022
29bed03
Add emscripten_malloc_wasm_worker and rename creation API a little.
juj Feb 15, 2022
0e3e328
Add documentation for Wasm Workers.
juj Feb 15, 2022
83fef04
Flake and lint and fix build error
juj Feb 17, 2022
57b2ff6
Remove deps_info dependency that does not work in current setup
juj Feb 17, 2022
559551f
__builtin_wasm_tls_align() can be zero
juj Feb 18, 2022
9effd63
Add more notes about __builtin_wasm_tls_align() being zero
juj Feb 18, 2022
177f29b
Add test for GCC __thread keyword.
juj Feb 18, 2022
3e0cdb3
Fix test_wasm_worker_malloc
juj Feb 18, 2022
883e539
Fix emscripten_lock_async_acquire()
juj Feb 18, 2022
a403133
Fix thread stack creation.
juj Feb 18, 2022
67d0bbb
Fix wasm64 build
juj Feb 18, 2022
ebc4319
Add slack to lock_busyspin_wait_acquire
juj Feb 18, 2022
da84c92
Fix typo in setting
juj Feb 18, 2022
ffdc68e
Remove removal of TextDecoder in threads.
juj Feb 20, 2022
2a0f5e4
Fix non-Wasm Workers build
juj Feb 20, 2022
19904b4
Fix file system case sensitivity
juj Feb 20, 2022
0300d02
Fix Wasm Workers proxying mode generation.
juj Feb 20, 2022
9f87d16
Skip TLS tests on Linux, they produce an internal compiler error.
juj Feb 20, 2022
df81c82
Fix typo
juj Feb 20, 2022
fd5ed59
Fix wasm_worker.h include from C code.
juj Feb 20, 2022
8c94a36
Add library_wasm_worker_stub.c.
juj Feb 20, 2022
1876f14
Wasm Workers working on default runtime.
juj Feb 21, 2022
3fa9bac
flake
juj Feb 21, 2022
fdb8c92
Disable most wasm workers tests to debug CI
juj Feb 21, 2022
37fba96
Fix non-minimal runtime wasm workers startup. Add test for WASM_WORKE…
juj Feb 22, 2022
a9e47d6
Simplify in MINIMAL_RUNTIME preamble assignment for wasm maximum memory.
juj Feb 22, 2022
4091a56
Fix USE_PTHREADS+WASM_WORKERS line.
juj Feb 22, 2022
90543ec
Add support for simultaneous pthreads + Wasm workers.
juj Feb 22, 2022
ce6040e
Do not pass redundant TLS size to Wasm Worker creation side.
juj Feb 22, 2022
81b0543
Update emcc.py wasm worker deps
juj Feb 22, 2022
fbc4fdc
Remove special handling of .S files in system_libs build
juj Feb 23, 2022
75d51c8
Update documentation
juj Feb 23, 2022
553dd6b
Add code size test.
juj Feb 23, 2022
7f35de8
flake
juj Feb 23, 2022
b0f04f0
Update tests and wasm worker MT build
juj Feb 23, 2022
ba81dd2
Fix mt build
juj Feb 23, 2022
59d11ad
Adjust mt build
juj Feb 23, 2022
05d0dc9
Update code size test
juj Feb 23, 2022
98cc721
Update hello worker wasm
juj Feb 24, 2022
28f37d9
flake
juj Feb 24, 2022
4dff3b7
Merge remote-tracking branch 'origin/main' into wasm_workers
juj Mar 3, 2022
76a4e82
Address review: Allow building with -sSHARED_MEMORY and add a test. M…
juj Mar 3, 2022
34a766e
Remove unnecessary dynCall statements
juj Mar 4, 2022
b45a7b7
Update mention of C11 and C++11 Atomics APIs
juj Mar 4, 2022
acdce95
Merge branch 'main' into wasm_workers
juj Mar 6, 2022
ee31eed
Remove old code.
juj Mar 6, 2022
08041f1
Utilize runOnMainThread() in MINIMAL_RUNTIME ready handler.
juj Mar 6, 2022
1f5d6b0
Simplify code
juj Mar 6, 2022
9e56c85
#error quotes
juj Mar 6, 2022
bca824e
Clean typo
juj Mar 6, 2022
07a3585
Cleanup tests
juj Mar 6, 2022
7fa8dd7
Update ChangeLog
juj Mar 6, 2022
33079fd
Fixes
juj Mar 6, 2022
4f8dc6c
Add test files.
juj Mar 6, 2022
c78609d
Fix pthreads
juj Mar 6, 2022
552e0a7
Remove moved test
juj Mar 7, 2022
7cfeb98
Address review
juj Mar 7, 2022
b7ac44d
Small code size optimization
juj Mar 7, 2022
5839916
Small code size opt
juj Mar 7, 2022
a570999
Flake
juj Mar 7, 2022
8d53ac4
Update Wasm Workers code size test
juj Mar 7, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions emcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1431,8 +1431,14 @@ def phase_setup(options, state, newargs, user_settings):
if settings.USE_PTHREADS or settings.WASM_WORKERS:
settings.SHARED_MEMORY = 1

if settings.SHARED_MEMORY and '-pthread' not in newargs:
newargs += ['-matomics', '-mbulk-memory']
if settings.SHARED_MEMORY:
juj marked this conversation as resolved.
Show resolved Hide resolved
if '-matomics' not in newargs:
newargs += ['-matomics']
if '-mbulk-memory' not in newargs:
newargs += ['-mbulk-memory']

if settings.USE_PTHREADS and '-pthread' not in newargs:
newargs += ['-pthread']

if 'DISABLE_EXCEPTION_CATCHING' in user_settings and 'EXCEPTION_CATCHING_ALLOWED' in user_settings:
# If we get here then the user specified both DISABLE_EXCEPTION_CATCHING and EXCEPTION_CATCHING_ALLOWED
Expand Down