From 0eb1ac5b392b082606b3a658fbc2cc7eaf76e0d3 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 23 Feb 2015 07:05:19 +0000 Subject: vm_args.c: rb_exc_set_backtrace * vm_args.c (raise_argument_error): call rb_exc_set_backtrace directly instead of funcall. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_args.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vm_args.c b/vm_args.c index 9e6fb9b990..cf7256b2d7 100644 --- a/vm_args.c +++ b/vm_args.c @@ -667,6 +667,8 @@ setup_parameters_complex(rb_thread_t * const th, const rb_iseq_t * const iseq, r return opt_pc; } +VALUE rb_exc_set_backtrace(VALUE exc, VALUE bt); + static void raise_argument_error(rb_thread_t *th, const rb_iseq_t *iseq, const VALUE exc) { @@ -683,7 +685,7 @@ raise_argument_error(rb_thread_t *th, const rb_iseq_t *iseq, const VALUE exc) } rb_ivar_set(exc, idBt_locations, at); - rb_funcall(exc, rb_intern("set_backtrace"), 1, at); + rb_exc_set_backtrace(exc, at); rb_exc_raise(exc); } -- cgit v1.2.3