1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
Noah Gibbs 2022-09-15 15:14:27 +01:00 committed by GitHub
parent 64a020324d
commit cc7f6fe734
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: git 2022-09-15 23:14:50 +09:00
Merged-By: maximecb <maximecb@ruby-lang.org>

2
yjit.c
View file

@ -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
}