mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm_method.c (rb_method_entry_eq): deals with optimized method
properly. [ruby-core:24789] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f86f669cf3
commit
efb9097352
2 changed files with 12 additions and 0 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
||||||
|
Thu Aug 6 15:44:04 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* vm_method.c (rb_method_entry_eq): deals with optimized method
|
||||||
|
properly. [ruby-core:24789]
|
||||||
|
|
||||||
|
Thu Aug 6 13:30:11 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* test/mkmf/base.rb (TestMkmf): was turned into a class, because
|
||||||
|
MiniUnit doesn't complain even if a testcase has no tests.
|
||||||
|
|
||||||
Thu Aug 6 13:00:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Thu Aug 6 13:00:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* lib/mkmf.rb (check_sizeof): added optional compiler option
|
* lib/mkmf.rb (check_sizeof): added optional compiler option
|
||||||
|
|
|
@ -795,6 +795,8 @@ rb_method_entry_eq(const rb_method_entry_t *m1, const rb_method_entry_t *m2)
|
||||||
case VM_METHOD_TYPE_NOTIMPLEMENTED:
|
case VM_METHOD_TYPE_NOTIMPLEMENTED:
|
||||||
case VM_METHOD_TYPE_UNDEF:
|
case VM_METHOD_TYPE_UNDEF:
|
||||||
return 1;
|
return 1;
|
||||||
|
case VM_METHOD_TYPE_OPTIMIZED:
|
||||||
|
return m1->body.optimize_type == m2->body.optimize_type;
|
||||||
default:
|
default:
|
||||||
rb_bug("rb_add_method: unsupported method type (%d)\n", m1->type);
|
rb_bug("rb_add_method: unsupported method type (%d)\n", m1->type);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue