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

Diagnose programs where main exits before subthread #96

Open
margnus1 opened this issue Sep 4, 2020 · 0 comments
Open

Diagnose programs where main exits before subthread #96

margnus1 opened this issue Sep 4, 2020 · 0 comments

Comments

@margnus1
Copy link
Contributor

margnus1 commented Sep 4, 2020

In Pthreads, when the main thread exits, all threads in the process are terminated. This could lead to unexpected behaviour if some side-effect expected from the program is cut off. We should issue a warning if the main thread exits while not all subtreads have been joined.

We will probably need an opt-out switch for this diagnostic, as there could be legitimate uses of this behaviour, as well as benchmarks that expect the old nidhugg behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant