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

Update fiber/enumerator threads with info about creation #5670

headius opened this issue Mar 29, 2019 · 0 comments

Update fiber/enumerator threads with info about creation #5670

headius opened this issue Mar 29, 2019 · 0 comments


Copy link

@headius headius commented Mar 29, 2019

Currently all fiber threads end up with a name something like "Ruby-Fiber-15" because we pool those thread objects and reuse them. However, this does not provide very good information about where or why the fiber thread was enlisted.

We could setName on those threads to update the name to something that reflects the origins of the fiber or enumerator using the given fiber thread, which would make it easier to debug when there's a leak or some other issue with those coroutine threads.

headius added a commit to headius/jruby that referenced this issue Apr 6, 2019
This patch sets the name of the threads used to drive fibers (or
the similar Enumerator#next coroutines) in order to more easily
audit and debug those threads. Relates to jruby#5671 and fixes jruby#5670.
@headius headius closed this in #5679 Apr 6, 2019
@enebo enebo added this to the JRuby milestone Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants