2010/7/31 Tanaka Akira <akr / fsij.org>:

> * don't clear the method cache because IO::WaitReadable has no method.

Implemented.

% svn diff --diff-cmd diff -x '-u -p'
Index: class.c
===================================================================
--- class.c	(revision 28807)
+++ class.c	(working copy)
@@ -659,7 +659,8 @@ rb_include_module(VALUE klass, VALUE mod
 	    }
 	}
 	c = RCLASS_SUPER(c) = include_class_new(module, RCLASS_SUPER(c));
-	changed = 1;
+	if (RMODULE_M_TBL(module) && RMODULE_M_TBL(module)->num_entries)
+	    changed = 1;
       skip:
 	module = RCLASS_SUPER(module);
     }
-- 
Tanaka Akira