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>
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().
|
// On Darwin it's the same as calling sys_icache_invalidate().
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
__builtin___clear_cache(start, end);
|
__builtin___clear_cache(start, end);
|
||||||
|
#elif defined(__aarch64__)
|
||||||
|
#error No instruction cache clear available with this compiler on Aarch64!
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user