On 08/29/2014 07:52 AM, Ard Biesheuvel wrote:
On 29 August 2014 13:02, Edward Nevill edward.nevill@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