diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-07-23 00:31:20 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-07-23 12:01:15 +0900 |
commit | 63e5f4df387ba24b561c304c56a2f4357de15fe3 (patch) | |
tree | 72c1e1507141f65ef08047116dbf9087586a3e55 /gc.c | |
parent | b726c4ee385dae6cd2d02712274890a4fe2c099a (diff) |
Access rb_execution_context_t::errinfo directly
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4670
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4001,9 +4001,9 @@ run_finalizer(rb_objspace_t *objspace, VALUE obj, VALUE table) 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; |