Skip to content

Fix: init schedulers before we spawn fibers#14339

Merged
ysbaddaden merged 1 commit intocrystal-lang:masterfrom
ysbaddaden:fix/setup-schedulers-before-we-start-spawning
Mar 1, 2024
Merged

Fix: init schedulers before we spawn fibers#14339
ysbaddaden merged 1 commit intocrystal-lang:masterfrom
ysbaddaden:fix/setup-schedulers-before-we-start-spawning

Conversation

@ysbaddaden
Copy link
Collaborator

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
@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

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants