diff --git a/jit.c b/jit.c index 6a0e0a3fb46..912aa908a6f 100644 --- a/jit.c +++ b/jit.c @@ -1003,6 +1003,8 @@ rb_jit_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(_M_ARM64) + FlushInstructionCache(GetCurrentProcess(), start, (char *)end - (char *)start); #elif defined(__aarch64__) #error No instruction cache clear available with this compiler on Aarch64! #endif