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

ruby-changes:66874

From: Nobuyoshi <ko1@a...>
Date: Fri, 23 Jul 2021 12:01:35 +0900 (JST)
Subject: [ruby-changes:66874] 63e5f4df38 (master): Access rb_execution_context_t::errinfo directly

https://git.ruby-lang.org/ruby.git/commit/?id=63e5f4df38

From 63e5f4df387ba24b561c304c56a2f4357de15fe3 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Fri, 23 Jul 2021 00:31:20 +0900
Subject: Access rb_execution_context_t::errinfo directly

---
 gc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gc.c b/gc.c
index 2c9e49e..97a4c8b 100644
--- a/gc.c
+++ b/gc.c
@@ -4001,9 +4001,9 @@ run_finalizer(rb_objspace_t *objspace, VALUE obj, VALUE table) https://github.com/ruby/ruby/blob/trunk/gc.c#L4001
     rb_execution_context_t * volatile ec = GET_EC();
 #define RESTORE_FINALIZER() (\
 	ec->cfp = saved.cfp, \
-	rb_set_errinfo(saved.errinfo))
+	ec->errinfo = saved.errinfo)
 
-    saved.errinfo = rb_errinfo();
+    saved.errinfo = ec->errinfo;
     saved.objid = rb_obj_id(obj);
     saved.cfp = ec->cfp;
     saved.finished = 0;
-- 
cgit v1.1


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

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