On 08/29/2014 07:52 AM, Ard Biesheuvel wrote:
> On 29 August 2014 13:02, Edward Nevill <edward.nev...@linaro.org> wrote:
>> We have a need on OpenJDK to flush the entire icache. Basically this
>> need occurs when we do a garbage collection which may include garbage
>> collection and patching of the dynamically generated code.
> 
> Surely, you could restrict the icache flush to the JIT heap, right?
> There is a __builtin___clear_cache() function in GCC which maps onto
> __clear_cache() in libgcc for AArch64, but it takes a begin and end
> pointer.

Ooh. Maybe I can rewrite my trivial JIT code in C.

https://github.com/xemul/criu/blob/master/arch/aarch64/intraprocedure.S

Thanks,
Christopher

-- 
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by the Linux Foundation.

_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to