Don't over flush the code cache at startup time.
Suspected that the kernel is having issues flushing cachelines for mmapped
pages that haven't been written to.
diff --git a/vm/compiler/Compiler.c b/vm/compiler/Compiler.c
index 018dc4a..21d7367 100644
--- a/vm/compiler/Compiler.c
+++ b/vm/compiler/Compiler.c
@@ -184,9 +184,9 @@
gDvmJit.templateSize = templateSize;
gDvmJit.codeCacheByteUsed = templateSize;
- /* Flush dcache and invalidate the icache to maintain coherence */
+ /* Only flush the part in the code cache that is being used now */
cacheflush((intptr_t) gDvmJit.codeCache,
- (intptr_t) gDvmJit.codeCache + CODE_CACHE_SIZE, 0);
+ (intptr_t) gDvmJit.codeCache + templateSize, 0);
return true;
}