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

ruby-changes:38749

From: ko1 <ko1@a...>
Date: Thu, 11 Jun 2015 15:55:06 +0900 (JST)
Subject: [ruby-changes:38749] ko1:r50830 (trunk): * method.h (METHOD_ENTRY_BASIC_SET): should clear last bit.

ko1	2015-06-11 15:54:49 +0900 (Thu, 11 Jun 2015)

  New Revision: 50830

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

  Log:
    * method.h (METHOD_ENTRY_BASIC_SET): should clear last bit.

  Modified files:
    trunk/ChangeLog
    trunk/method.h
Index: method.h
===================================================================
--- method.h	(revision 50829)
+++ method.h	(revision 50830)
@@ -67,7 +67,7 @@ static inline void https://github.com/ruby/ruby/blob/trunk/method.h#L67
 METHOD_ENTRY_BASIC_SET(rb_method_entry_t *me, int basic)
 {
     VM_ASSERT(basic <= 1);
-    me->flags = me->flags | (basic << (IMEMO_FL_USHIFT+2));
+    me->flags = (me->flags & ~(IMEMO_FL_USER2                  ) | (basic << (IMEMO_FL_USHIFT+2));
 }
 static inline void
 METHOD_ENTRY_SAFE_SET(rb_method_entry_t *me, int safe)
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 50829)
+++ ChangeLog	(revision 50830)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Jun 11 15:53:31 2015  Koichi Sasada  <ko1@a...>
+
+	* method.h (METHOD_ENTRY_BASIC_SET): should clear last bit.
+
 Thu Jun 11 14:34:45 2015  SHIBATA Hiroshi  <hsbt@r...>
 
 	* lib/rubygems.rb: bump version to 2.4.7 and 2.4.8. these versions fixed

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

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