diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-07 13:44:27 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-07 13:44:27 +0000 |
commit | 76734388a22c1ffed89e18d916a4215034898b39 (patch) | |
tree | 39be13695c82535d55bd0415d4a8c48643784113 | |
parent | 9468e945c8877af9d33044e5813627282a7700f4 (diff) |
* thread.c (rb_fd_zero): remove redundant zero fill.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | thread.c | 4 |
2 files changed, 5 insertions, 3 deletions
@@ -1,3 +1,7 @@ +Sat May 7 22:43:48 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> + + * thread.c (rb_fd_zero): remove redundant zero fill. + Sat May 7 22:38:04 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> * thread.c (rb_fd_init): remove volatile qualifier. @@ -2350,10 +2350,8 @@ rb_fd_term(rb_fdset_t *fds) void rb_fd_zero(rb_fdset_t *fds) { - if (fds->fdset) { + if (fds->fdset) MEMZERO(fds->fdset, fd_mask, howmany(fds->maxfd, NFDBITS)); - FD_ZERO(fds->fdset); - } } static void |