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

ruby-changes:70317

From: Koichi <ko1@a...>
Date: Sun, 19 Dec 2021 06:17:19 +0900 (JST)
Subject: [ruby-changes:70317] 6bef1ac628 (master): `rb_iseq_update_references()` cares `script_lines`

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

From 6bef1ac62850be6d83a069ac3d3be0b8e2f3afcf Mon Sep 17 00:00:00 2001
From: Koichi Sasada <ko1@a...>
Date: Sun, 19 Dec 2021 06:15:22 +0900
Subject: `rb_iseq_update_references()` cares `script_lines`

and it fixes compaction issue:
http://rubyci.s3.amazonaws.com/freebsd12/ruby-master/log/20211218T203001Z.fail.html.gz
---
 iseq.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/iseq.c b/iseq.c
index a1940f70ce4..f711367cfcd 100644
--- a/iseq.c
+++ b/iseq.c
@@ -263,6 +263,7 @@ rb_iseq_update_references(rb_iseq_t *iseq) https://github.com/ruby/ruby/blob/trunk/iseq.c#L263
 
         body->variable.coverage = rb_gc_location(body->variable.coverage);
         body->variable.pc2branchindex = rb_gc_location(body->variable.pc2branchindex);
+        body->variable.script_lines = rb_gc_location(body->variable.script_lines);
         body->location.label = rb_gc_location(body->location.label);
         body->location.base_label = rb_gc_location(body->location.base_label);
         body->location.pathobj = rb_gc_location(body->location.pathobj);
-- 
cgit v1.2.1


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

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