-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Revert 4.0.11 threads normal-mutex debug implementation #26635
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
base: main
Are you sure you want to change the base?
Changes from 9 commits
6f7004e
a3c997b
0c28704
a77220e
40e8bfa
47fa005
01b389c
dd8d0da
4dda4be
48cff0d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5243,6 +5243,10 @@ def test_wasm_worker_proxied_function(self): | |
| # Test that code does not crash in ASSERTIONS-disabled builds | ||
| self.btest('wasm_worker/proxied_function.c', expected='0', cflags=['--js-library', test_file('wasm_worker/proxied_function.js'), '-sWASM_WORKERS', '-sASSERTIONS=0']) | ||
|
|
||
| def test_wasm_worker_pthread_mutex_debug_allocator_regression(self): | ||
| self.btest_exit('wasm_worker/pthread_mutex_debug_allocator_regression.c', | ||
| cflags=['-pthread', '-sWASM_WORKERS']) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you move this into
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done in latest (in case this branch is still potentially useful) |
||
|
|
||
| @no_firefox('no 4GB support yet') | ||
| @no_2gb('uses MAXIMUM_MEMORY') | ||
| @no_4gb('uses MAXIMUM_MEMORY') | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| #include <stdlib.h> | ||
|
|
||
| #include <emscripten.h> | ||
| #include <emscripten/wasm_worker.h> | ||
|
|
||
| static void worker_loop(void) { | ||
| for (;;) { | ||
| free(malloc(1)); | ||
| } | ||
| } | ||
|
|
||
| static void main_loop(void) { | ||
| static unsigned ticks; | ||
| malloc(1); | ||
| if (++ticks == 120) { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I had to add
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated to use your C repro in latest (in case this branch is still potentially useful) |
||
| emscripten_force_exit(0); | ||
| } | ||
| } | ||
|
|
||
| int main(void) { | ||
| emscripten_wasm_worker_post_function_v(emscripten_malloc_wasm_worker(1024 * 1024), worker_loop); | ||
| emscripten_set_main_loop(main_loop, 0, false); | ||
| return 0; | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a link to
https://github.com/emscripten-core/emscripten/issues/26619here?(And also in the test source code).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in latest (in case this branch is still potentially useful)