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

ruby-changes:73571

From: Noah <ko1@a...>
Date: Thu, 15 Sep 2022 23:14:39 +0900 (JST)
Subject: [ruby-changes:73571] cc7f6fe734 (master): YJIT should die if we compile on Aarch64 with no instruction cache clear available (#6380)

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

From cc7f6fe73454743da87d73ddb26626503fae248f Mon Sep 17 00:00:00 2001
From: Noah Gibbs <noah.gibbs@s...>
Date: Thu, 15 Sep 2022 15:14:27 +0100
Subject: YJIT should die if we compile on Aarch64 with no instruction cache
 clear available (#6380)

YJIT should die if we compile on ARM64 with no icache clear available
---
 yjit.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/yjit.c b/yjit.c
index afa329e024..d3ec27ab1e 100644
--- a/yjit.c
+++ b/yjit.c
@@ -89,6 +89,8 @@ rb_yjit_icache_invalidate(void *start, void *end) https://github.com/ruby/ruby/blob/trunk/yjit.c#L89
     // On Darwin it's the same as calling sys_icache_invalidate().
 #ifdef __GNUC__
     __builtin___clear_cache(start, end);
+#elif defined(__aarch64__)
+#error No instruction cache clear available with this compiler on Aarch64!
 #endif
 }
 
-- 
cgit v1.2.1


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

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