This project is closed and read-only.
Actions
Backport #1495
closedwarn_printf is an unhealthy thing to have in rb_thread_schedule as it can cause recursion.
Backport #1495:
warn_printf is an unhealthy thing to have in rb_thread_schedule as it can cause recursion.
Status:
Closed
Assignee:
-
Description
=begin
warn_printf is an unhealthy thing to have in rb_thread_schedule as it can (especially if you are running -rprofile) recurse back into rb_thread_schedule.
This is unhealthy as rb_thread_schedule uses several static variables and hence is not reentrant. (I discovered this when the deadlock detection reported deadlock even though there was a runnable thread! There wasn't a runnable thread, the recursion from warn_printf had just woken a thread.)
Probably present in ruby-1.8.6 as well.
=end
Actions