summaryrefslogtreecommitdiff
path: root/yjit.c
diff options
context:
space:
mode:
authorNoah Gibbs <noah.gibbs@shopify.com>2022-09-15 15:14:27 +0100
committerGitHub <noreply@github.com>2022-09-15 10:14:27 -0400
commitcc7f6fe73454743da87d73ddb26626503fae248f (patch)
tree9410987ac269d0105cd39fd73ead1caa8affaa77 /yjit.c
parent64a020324dc7453c5678f44b898eb5da47b9abcc (diff)
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
Notes
Notes: Merged-By: maximecb <maximecb@ruby-lang.org>
Diffstat (limited to 'yjit.c')
-rw-r--r--yjit.c2
1 files changed, 2 insertions, 0 deletions
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)
// 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
}