1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* vm_backtrace.c (frame2klass): filter only for imemo_ment.

T_IMEMO/imemo_iseq can be passed here.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2016-04-11 11:19:52 +00:00
parent f0226f0a3c
commit 6278420729
2 changed files with 10 additions and 5 deletions

View file

@ -1,3 +1,8 @@
Mon Apr 11 20:18:43 2016 Koichi Sasada <ko1@atdot.net>
* vm_backtrace.c (frame2klass): filter only for imemo_ment.
T_IMEMO/imemo_iseq can be passed here.
Mon Apr 11 17:43:04 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
* compile.c (iseq_optimize): disable tail call optimization in

View file

@ -1344,12 +1344,12 @@ frame2klass(VALUE frame)
if (RB_TYPE_P(frame, T_IMEMO)) {
const rb_callable_method_entry_t *cme = (rb_callable_method_entry_t *)frame;
VM_ASSERT(imemo_type(frame) == imemo_ment);
return cme->defined_class;
}
else {
return Qnil;
if (imemo_type(frame) == imemo_ment) {
return cme->defined_class;
}
}
return Qnil;
}
VALUE