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

improvement: Support interrupted shutdown hooks in multithreaded application #3850

Merged

Conversation

WojciechMazur
Copy link
Contributor

@WojciechMazur WojciechMazur commented Mar 24, 2024

Extension of #3821

  • Prevent deadlocks when running shutdown hooks triggered by signal handler invoked during GC
  • Don't implement JoinNonDeamonThreads as shutdown hook, make it regular method injected in codegen to the main thread.
  • Add tests for interrupted execution using scripted tests

@WojciechMazur WojciechMazur merged commit 8c49efa into scala-native:main Mar 24, 2024
61 checks passed
@WojciechMazur WojciechMazur deleted the improve/sigint-shutdown branch March 24, 2024 20:48
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.

None yet

1 participant