ruby-changes:47450
From: ko1 <ko1@a...>
Date: Thu, 10 Aug 2017 15:26:58 +0900 (JST)
Subject: [ruby-changes:47450] ko1:r59566 (trunk): use VM_UNREACHABLE() instead of rb_bug().
ko1 2017-08-10 15:26:52 +0900 (Thu, 10 Aug 2017) New Revision: 59566 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59566 Log: use VM_UNREACHABLE() instead of rb_bug(). Modified files: trunk/cont.c Index: cont.c =================================================================== --- cont.c (revision 59565) +++ cont.c (revision 59566) @@ -1360,7 +1360,7 @@ rb_fiber_start(void) https://github.com/ruby/ruby/blob/trunk/cont.c#L1360 } rb_fiber_terminate(fib); - rb_bug("rb_fiber_start: unreachable"); + VM_UNREACHABLE(rb_fiber_start); } static rb_fiber_t * @@ -1478,14 +1478,14 @@ fiber_store(rb_fiber_t *next_fib, rb_thr https://github.com/ruby/ruby/blob/trunk/cont.c#L1478 if (fib->cont.argc == -1) rb_exc_raise(fib->cont.value); if (next_fib->cont.value == Qundef) { cont_restore_0(&next_fib->cont, &next_fib->cont.value); - rb_bug("rb_fiber_resume: unreachable"); + VM_UNREACHABLE(fiber_store); } return fib->cont.value; } else { VALUE undef = Qundef; cont_restore_0(&next_fib->cont, &undef); - rb_bug("rb_fiber_resume: unreachable"); + VM_UNREACHABLE(fiber_store); } #endif /* FIBER_USE_NATIVE */ } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/