-
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 all commits
6f7004e
a3c997b
0c28704
a77220e
40e8bfa
47fa005
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 |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| #include <cstdint> | ||
| #include <emscripten.h> | ||
| #include <emscripten/wasm_worker.h> | ||
|
|
||
| static void worker_loop() { | ||
| for (;;) { | ||
| delete new std::uint8_t{0}; | ||
| } | ||
| } | ||
|
|
||
| static void main_loop() { | ||
| static unsigned ticks; | ||
| new std::uint8_t{0}; | ||
slowriot marked this conversation as resolved.
Show resolved
Hide resolved
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. The the bug still reproduce if you convert this from (You might need 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. Yes, this test is basically equivalent to the CPP and C repros I provided in the issue description at #26619. Only the C++ path is tested here because I understand them to be identical.
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 would rather have just the C version of the test. We tend to prefer C tests for various reasons. |
||
| if (++ticks == 120) { | ||
| emscripten_force_exit(0); | ||
| } | ||
| } | ||
|
|
||
| int main() { | ||
| emscripten_wasm_worker_post_function_v(emscripten_malloc_wasm_worker(1024 * 1024), worker_loop); | ||
| emscripten_set_main_loop(main_loop, 0, false); | ||
| return 0; | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.