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

Fix: init schedulers before we spawn fibers #14339

Conversation

ysbaddaden
Copy link
Contributor

The signal and interrupt handlers spawn fibers, and should thus be setup after we properly start the fiber schedulers.

This is working today because we lazily start schedulers for a thread, and we happen to not have recursive dependencies, but crystal-lang/rfcs#2 is a whole different story 😅

The signal and interrupt handlers spawn fibers, and should thus be
setup after we properly start the fiber schedulers...

This is only working today because we lazily start schedulers for a
thread, and we don't have any dual dependencies.
@ysbaddaden ysbaddaden added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:concurrency labels Feb 29, 2024
@ysbaddaden ysbaddaden self-assigned this Feb 29, 2024
@straight-shoota straight-shoota added this to the 1.12.0 milestone Feb 29, 2024
@ysbaddaden ysbaddaden merged commit ee70ebb into crystal-lang:master Mar 1, 2024
57 checks passed
@ysbaddaden ysbaddaden deleted the fix/setup-schedulers-before-we-start-spawning branch March 1, 2024 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:concurrency
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants