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

Enumerator should use a non-blocking fiber, change rb_fiber_new to be non-blocking by default. #10481

Merged
merged 1 commit into from Apr 7, 2024

Conversation

ioquatix
Copy link
Member

@ioquatix ioquatix commented Apr 7, 2024

This re-applies #10478 sans the parse.h change.

@ioquatix ioquatix enabled auto-merge (squash) April 7, 2024 10:46
@eregon
Copy link
Member

eregon commented Apr 7, 2024

This changes rb_fiber_new which is public C API to always use a non-blocking fiber.
That seems incompatible.

eregon
eregon previously requested changes Apr 7, 2024
Copy link
Member

@eregon eregon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comment

@eregon eregon disabled auto-merge April 7, 2024 11:12
@eregon
Copy link
Member

eregon commented Apr 7, 2024

I disabled the auto-merge since this incompatibility seems worth thinking about before merging.

@ioquatix ioquatix requested a review from eregon April 7, 2024 11:54
@ioquatix
Copy link
Member Author

ioquatix commented Apr 7, 2024

Can you show where it's incompatible?

@eregon
Copy link
Member

eregon commented Apr 7, 2024

If it's already the behavior of Fiber.new then it sounds fair to change rb_fiber_new() too (which should have been changed at the same time ideally).

@ioquatix ioquatix changed the title Enumerator should use a non-blocking fiber. Enumerator should use a non-blocking fiber, change rb_fiber_new to be non-blocking by default. Apr 7, 2024
@ioquatix
Copy link
Member Author

ioquatix commented Apr 7, 2024

Appreciate the review.

@ioquatix ioquatix merged commit 5d1702e into ruby:master Apr 7, 2024
99 checks passed
@ioquatix ioquatix deleted the enumerator-nonblocking branch April 7, 2024 12:49
artur-intech pushed a commit to artur-intech/ruby that referenced this pull request Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants