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:
parent
64a020324d
commit
cc7f6fe734
Notes:
git
2022-09-15 23:14:50 +09:00
Merged-By: maximecb <maximecb@ruby-lang.org>
1 changed files with 2 additions and 0 deletions
2
yjit.c
2
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue