[前][次][番号順一覧][スレッド一覧]

ruby-changes:53562

From: normal <ko1@a...>
Date: Sun, 18 Nov 2018 10:47:11 +0900 (JST)
Subject: [ruby-changes:53562] normal:r65777 (trunk): io.c (novl_wait_for_single_fd): VM_UNREACHABLE instead of assert

normal	2018-11-18 10:37:46 +0900 (Sun, 18 Nov 2018)

  New Revision: 65777

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65777

  Log:
    io.c (novl_wait_for_single_fd): VM_UNREACHABLE instead of assert
    
    This respects VM_CHECK_MODE and is more consistent with
    the rest of our code.

  Modified files:
    trunk/io.c
Index: io.c
===================================================================
--- io.c	(revision 65776)
+++ io.c	(revision 65777)
@@ -10725,7 +10725,7 @@ nogvl_wait_for_single_fd(int fd, short e https://github.com/ruby/ruby/blob/trunk/io.c#L10725
         ret = rb_fd_select(fd + 1, 0, &fds, 0, 0);
         break;
       default:
-        assert(0 && "not supported yet, should never get here");
+        VM_UNREACHABLE(nogvl_wait_for_single_fd);
     }
 
     rb_fd_term(&fds);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]