Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* vm.c, proc.c: avoid unnecessary `rb_vm_rewrite_ep_in_errinfo'

  calls.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
commit 049ace5888174d5c2680a9203a8e3f24e928f2b9 1 parent c1dbead
@k-tsj k-tsj authored
Showing with 6 additions and 4 deletions.
  1. +5 −0 ChangeLog
  2. +0 −1  proc.c
  3. +1 −3 vm.c
View
5 ChangeLog
@@ -1,3 +1,8 @@
+Sat Nov 3 18:15:24 2012 Kazuki Tsujimoto <kazuki@callcc.net>
+
+ * vm.c, proc.c: avoid unnecessary `rb_vm_rewrite_ep_in_errinfo'
+ calls.
+
Sat Nov 3 17:53:43 2012 Kouhei Sutou <kou@cozmixng.org>
* bin/testrb: Use only Test::Unit::AutoRunner in test-unit gem
View
1  proc.c
@@ -421,7 +421,6 @@ proc_new(VALUE klass, int is_lambda)
}
procval = rb_vm_make_proc(th, block, klass);
- rb_vm_rewrite_ep_in_errinfo(th, cfp);
if (is_lambda) {
rb_proc_t *proc;
View
4 vm.c
@@ -435,9 +435,6 @@ vm_make_env_each(rb_thread_t * const th, rb_control_frame_t * const cfp,
/* TODO */
env->block.iseq = 0;
}
- else {
- rb_vm_rewrite_ep_in_errinfo(th, cfp);
- }
return envval;
}
@@ -486,6 +483,7 @@ rb_vm_make_env_object(rb_thread_t * th, rb_control_frame_t *cfp)
VALUE envval;
envval = vm_make_env_each(th, cfp, cfp->ep, VM_CF_LEP(cfp));
+ rb_vm_rewrite_ep_in_errinfo(th, th->cfp);
if (PROCDEBUG) {
check_env_value(envval);
Please sign in to comment.
Something went wrong with that request. Please try again.