lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Mon, Jul 25, 2011 at 14:10, Dimiter 'malkia' Stanev <malkia@gmail.com> wrote:
> This is from luajit's code:
>
> lj_asm.c
>
> /* Flush instruction cache. */
> static void asm_cache_flush(MCode *start, MCode *end)
> {
>  VG_INVALIDATE(start, (char *)end-(char *)start);
> #if LJ_TARGET_X86ORX64
>  UNUSED(start); UNUSED(end);
> #elif LJ_TARGET_OSX
>  sys_icache_invalidate(start, end-start);
> #elif defined(__GNUC__)
>  __clear_cache(start, end);
> #else
> #error "Missing builtin to flush instruction cache"
> #endif
> }

I saw that though I'm wondering whether it works on android or not due
to this bug (http://code.google.com/p/android/issues/detail?id=1803).
If that's still not fixed I may end up just calling the syscall
directly for android.

-- James