Log ec->interrupt_flag
if non-zero.
This commit is contained in:
parent
3246bbd325
commit
5ac435dc34
Notes:
git
2025-06-06 09:15:55 +00:00
@ -649,7 +649,7 @@ rb_fiber_scheduler_unblock(VALUE scheduler, VALUE blocker, VALUE fiber)
|
|||||||
#ifdef RUBY_DEBUG
|
#ifdef RUBY_DEBUG
|
||||||
rb_execution_context_t *ec = GET_EC();
|
rb_execution_context_t *ec = GET_EC();
|
||||||
if (ec->interrupt_flag) {
|
if (ec->interrupt_flag) {
|
||||||
rb_bug("rb_fiber_scheduler_unblock called with interrupt flags set");
|
rb_bug("rb_fiber_scheduler_unblock called with interrupt flags set: %d", ec->interrupt_flag);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -1079,7 +1079,7 @@ VALUE rb_fiber_scheduler_fiber_interrupt(VALUE scheduler, VALUE fiber, VALUE exc
|
|||||||
#ifdef RUBY_DEBUG
|
#ifdef RUBY_DEBUG
|
||||||
rb_execution_context_t *ec = GET_EC();
|
rb_execution_context_t *ec = GET_EC();
|
||||||
if (ec->interrupt_flag) {
|
if (ec->interrupt_flag) {
|
||||||
rb_bug("rb_fiber_scheduler_fiber_interrupt called with interrupt flags set");
|
rb_bug("rb_fiber_scheduler_fiber_interrupt called with interrupt flags set: %d", ec->interrupt_flag);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user