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

ruby-changes:64014

From: Takashi <ko1@a...>
Date: Tue, 8 Dec 2020 14:03:26 +0900 (JST)
Subject: [ruby-changes:64014] 73b07c437e (master): Revert "Have list_node at the top of rb_mjit_unit"

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

From 73b07c437e24711c23dd2dd01d3ffc5f1012e046 Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Mon, 7 Dec 2020 21:02:21 -0800
Subject: Revert "Have list_node at the top of rb_mjit_unit"

This reverts commit 3319ce37651aa7e50c31b5fba14871938318b37a.

I still haven't figured out why, but this seems to have increased the
failure rate.

diff --git a/mjit_worker.c b/mjit_worker.c
index 945d1ef..557db56 100644
--- a/mjit_worker.c
+++ b/mjit_worker.c
@@ -148,7 +148,6 @@ typedef intptr_t pid_t; https://github.com/ruby/ruby/blob/trunk/mjit_worker.c#L148
 
 // The unit structure that holds metadata of ISeq for MJIT.
 struct rb_mjit_unit {
-    struct list_node unode;
     // Unique order number of unit.
     int id;
     // Dlopen handle of the loaded object file.
@@ -160,6 +159,7 @@ struct rb_mjit_unit { https://github.com/ruby/ruby/blob/trunk/mjit_worker.c#L159
 #endif
     // Only used by unload_units. Flag to check this unit is currently on stack or not.
     bool used_code_p;
+    struct list_node unode;
     // mjit_compile's optimization switches
     struct rb_mjit_compile_info compile_info;
     // captured CC values, they should be marked with iseq.
-- 
cgit v0.10.2


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

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