Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Feb 16, 2023

This simplifies the code and reduces code size. Allows removal of separate
exitOnMainThread function.

Add testing of both exit and _exit in test_pthread_exit_runtime.

@sbc100 sbc100 requested review from kripken and tlively February 16, 2023 18:18
Copy link
Member

@tlively tlively left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't synchronous proxying make the worker wait forever? Or is that not a problem because it will be terminated by the main thread during the exit. Does this work both with and without EXIT_RUNTIME?

@sbc100
Copy link
Collaborator Author

sbc100 commented Feb 16, 2023

Won't synchronous proxying make the worker wait forever? Or is that not a problem because it will be terminated by the main thread during the exit. Does this work both with and without EXIT_RUNTIME?

Yes, when you call exit() from a worker it will then block forever until it gets terminated.

This was already true for _exit.. this change makes it true for exit too.

(i.e. proc_exit was already proxied fully synchronously).

sbc100 added a commit that referenced this pull request Feb 16, 2023
Also, convert test_html5_core.  These are the two tests that otherwise
will fail when #18770 lands.
This simplifies the code and reduces code size.

Add testing of both `exit` and `_exit` in test_pthread_exit_runtime.
sbc100 added a commit that referenced this pull request Aug 16, 2023
These are the two tests otherwise starting failing with #18770. The
reason is that.
sbc100 added a commit that referenced this pull request Aug 18, 2023
These are the two tests otherwise starting failing with #18770. The
reason is that.
sbc100 added a commit that referenced this pull request Aug 21, 2023
These are the two tests otherwise starting failing with #18770. The
reason is that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants