summaryrefslogtreecommitdiff
path: root/load.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-01 07:37:24 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-01 07:37:24 (GMT)
commitea09a7b75594819b6f7e28a22e6d022b2a01674f (patch)
tree21e7484677cf7ddd1001a1d3695670d7df175663 /load.c
parent02b501323e3cfd2ce12ac11af8c1169ad3f51523 (diff)
load.c: use local variable
* load.c (rb_load_internal): use local variable th instead of GET_THREAD() for each time. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'load.c')
-rw-r--r--load.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/load.c b/load.c
index 327e099..c197631 100644
--- a/load.c
+++ b/load.c
@@ -607,15 +607,15 @@ rb_load_internal(VALUE fname, int wrap)
th->top_self = self;
th->top_wrapper = wrapper;
- if (!loaded && !FIXNUM_P(GET_THREAD()->errinfo)) {
+ if (!loaded && !FIXNUM_P(th->errinfo)) {
/* an error on loading don't include INT2FIX(TAG_FATAL) see r35625 */
- rb_exc_raise(GET_THREAD()->errinfo);
+ rb_exc_raise(th->errinfo);
}
if (state) {
rb_vm_jump_tag_but_local_jump(state);
}
- if (!NIL_P(GET_THREAD()->errinfo)) {
+ if (!NIL_P(th->errinfo)) {
/* exception during load */
rb_exc_raise(th->errinfo);
}