[前][次][番号順一覧][スレッド一覧]

ruby-changes:48566

From: ko1 <ko1@a...>
Date: Tue, 7 Nov 2017 14:08:13 +0900 (JST)
Subject: [ruby-changes:48566] ko1:r60681 (trunk): use GET_EC() directly

ko1	2017-11-07 14:08:09 +0900 (Tue, 07 Nov 2017)

  New Revision: 60681

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60681

  Log:
    use GET_EC() directly

  Modified files:
    trunk/iseq.c
Index: iseq.c
===================================================================
--- iseq.c	(revision 60680)
+++ iseq.c	(revision 60681)
@@ -631,7 +631,6 @@ rb_iseq_load(VALUE data, VALUE parent, V https://github.com/ruby/ruby/blob/trunk/iseq.c#L631
 rb_iseq_t *
 rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE realpath, VALUE line, const struct rb_block *base_block, VALUE opt)
 {
-    rb_thread_t *th = GET_THREAD();
     rb_iseq_t *iseq = NULL;
     const rb_iseq_t *const parent = base_block ? vm_block_iseq(base_block) : NULL;
     rb_compile_option_t option;
@@ -664,7 +663,7 @@ rb_iseq_compile_with_option(VALUE src, V https://github.com/ruby/ruby/blob/trunk/iseq.c#L663
 
     if (!ast->root) {
 	rb_ast_dispose(ast);
-	rb_exc_raise(th->ec->errinfo);
+	rb_exc_raise(GET_EC()->errinfo);
     }
     else {
 	INITIALIZED VALUE label = parent ?

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]