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

ruby-changes:73200

From: Maxime <ko1@a...>
Date: Tue, 30 Aug 2022 01:00:24 +0900 (JST)
Subject: [ruby-changes:73200] 8605efdd94 (master): Fix corrupted X29 causing segfault, thanks Alan!

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

From 8605efdd942d2a6b139abe66503427683e5dcad3 Mon Sep 17 00:00:00 2001
From: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@s...>
Date: Thu, 21 Jul 2022 12:31:31 -0400
Subject: Fix corrupted X29 causing segfault, thanks Alan!

---
 yjit/src/backend/arm64/mod.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/yjit/src/backend/arm64/mod.rs b/yjit/src/backend/arm64/mod.rs
index 72cbd938b0..25e155dafa 100644
--- a/yjit/src/backend/arm64/mod.rs
+++ b/yjit/src/backend/arm64/mod.rs
@@ -633,8 +633,8 @@ impl Assembler https://github.com/ruby/ruby/blob/trunk/yjit/src/backend/arm64/mod.rs#L633
                             if b_offset_fits_bits(offset) {
                                 b(cb, A64Opnd::new_imm(offset / 4));
                             } else {
-                                emit_load_value(cb, X29, dst_addr as u64);
-                                br(cb, X29);
+                                emit_load_value(cb, Self::SCRATCH0, dst_addr as u64);
+                                br(cb, Self::SCRATCH0);
                             }
                         },
                         Target::Label(label_idx) => {
-- 
cgit v1.2.1


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

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