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 math overflow after spawning Int32::MAX + 1 fibers #14096

Conversation

ysbaddaden
Copy link
Contributor

This only happens after a lot of fibers has started, and can take over 24 days if spawning a fiber every millisecond, but it can eventually happen.

This is a still lot of fibers, and can take over 24 days if spawning a
fiber every millisecond, but it can happen.
@straight-shoota straight-shoota added this to the 1.11.0 milestone Dec 15, 2023
@straight-shoota straight-shoota merged commit 756a876 into crystal-lang:master Dec 17, 2023
55 checks passed
@ysbaddaden ysbaddaden deleted the fix/mt/math-overflow-in-scheduler branch December 18, 2023 10:24
@straight-shoota straight-shoota changed the title MT: math overflow after spawning Int32::MAX + 1 fibers Fix math overflow after spawning Int32::MAX + 1 fibers Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants