ruby-changes:56873
From: Nobuyoshi <ko1@a...>
Date: Thu, 8 Aug 2019 21:31:22 +0900 (JST)
Subject: [ruby-changes:56873] Nobuyoshi Nakada: 3d87b774c4 (master): Use `ec` instead of `th->ec` where the `th` came from the `ec`
https://git.ruby-lang.org/ruby.git/commit/?id=3d87b774c4 From 3d87b774c4e38e0dbe3ef181183565c5987cd05f Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 8 Aug 2019 21:08:00 +0900 Subject: Use `ec` instead of `th->ec` where the `th` came from the `ec` diff --git a/load.c b/load.c index d16bba1..cc5533e 100644 --- a/load.c +++ b/load.c @@ -579,7 +579,7 @@ rb_load_internal0(rb_execution_context_t *ec, VALUE fname, int wrap) https://github.com/ruby/ruby/blob/trunk/load.c#L579 rb_thread_t *volatile th0 = th; #endif - th->ec->errinfo = Qnil; /* ensure */ + ec->errinfo = Qnil; /* ensure */ if (!wrap) { th->top_wrapper = 0; @@ -591,7 +591,7 @@ rb_load_internal0(rb_execution_context_t *ec, VALUE fname, int wrap) https://github.com/ruby/ruby/blob/trunk/load.c#L591 rb_extend_object(th->top_self, th->top_wrapper); } - EC_PUSH_TAG(th->ec); + EC_PUSH_TAG(ec); state = EC_EXEC_TAG(); if (state == TAG_NONE) { rb_ast_t *ast; @@ -624,8 +624,8 @@ rb_load_internal0(rb_execution_context_t *ec, VALUE fname, int wrap) https://github.com/ruby/ruby/blob/trunk/load.c#L624 rb_vm_jump_tag_but_local_jump(state); } - if (!NIL_P(th->ec->errinfo)) { - rb_exc_raise(th->ec->errinfo); + if (!NIL_P(ec->errinfo)) { + rb_exc_raise(ec->errinfo); } } -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/