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

ruby-changes:58121

From: Aaron <ko1@a...>
Date: Sat, 5 Oct 2019 04:03:03 +0900 (JST)
Subject: [ruby-changes:58121] bd4b65f4b0 (master): IMEMO objects don't have a class, so return early

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

From bd4b65f4b05ff7dcb5c7e16f174c57885bf27e40 Mon Sep 17 00:00:00 2001
From: Aaron Patterson <tenderlove@r...>
Date: Fri, 4 Oct 2019 11:17:43 -0700
Subject: IMEMO objects don't have a class, so return early

IMEMO objects don't have a class field to update, so we need to return
early, otherwise it can cause a segv.

diff --git a/gc.c b/gc.c
index 48e8bec..86c9c67 100644
--- a/gc.c
+++ b/gc.c
@@ -8068,7 +8068,7 @@ gc_update_object_references(rb_objspace_t *objspace, VALUE obj) https://github.com/ruby/ruby/blob/trunk/gc.c#L8068
 
       case T_IMEMO:
         gc_ref_update_imemo(objspace, obj);
-        break;
+        return;
 
       case T_NIL:
       case T_FIXNUM:
-- 
cgit v0.10.2


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

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