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

ruby-changes:32221

From: ko1 <ko1@a...>
Date: Fri, 20 Dec 2013 17:57:32 +0900 (JST)
Subject: [ruby-changes:32221] ko1:r44300 (trunk): * vm_method.c: check definition of

ko1	2013-12-20 17:57:24 +0900 (Fri, 20 Dec 2013)

  New Revision: 44300

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44300

  Log:
    * vm_method.c: check definition of
      GLOBAL_METHOD_CACHE_SIZE and GLOBAL_METHOD_CACHE_MASK.

  Modified files:
    trunk/ChangeLog
    trunk/vm_method.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 44299)
+++ ChangeLog	(revision 44300)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Dec 20 17:52:50 2013  Koichi Sasada  <ko1@a...>
+
+	* vm_method.c: check definition of
+	  GLOBAL_METHOD_CACHE_SIZE and GLOBAL_METHOD_CACHE_MASK.
+
 Fri Dec 20 17:03:10 2013  Koichi Sasada  <ko1@a...>
 
 	* include/ruby/ruby.h: rename OBJ_WRITE and OBJ_WRITTEN into
Index: vm_method.c
===================================================================
--- vm_method.c	(revision 44299)
+++ vm_method.c	(revision 44300)
@@ -2,8 +2,13 @@ https://github.com/ruby/ruby/blob/trunk/vm_method.c#L2
  * This file is included by vm.c
  */
 
+#ifndef GLOBAL_METHOD_CACHE_SIZE
 #define GLOBAL_METHOD_CACHE_SIZE 0x800
+#endif
+#ifndef GLOBAL_METHOD_CACHE_MASK
 #define GLOBAL_METHOD_CACHE_MASK 0x7ff
+#endif
+
 #define GLOBAL_METHOD_CACHE_KEY(c,m) ((((c)>>3)^(m))&GLOBAL_METHOD_CACHE_MASK)
 #define GLOBAL_METHOD_CACHE(c,m) (global_method_cache + GLOBAL_METHOD_CACHE_KEY(c,m))
 #include "method.h"

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

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