diff options
Diffstat (limited to 'vm/compiler/Compiler.c')
-rw-r--r-- | vm/compiler/Compiler.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/vm/compiler/Compiler.c b/vm/compiler/Compiler.c index fe42f4c51..c8ff62ee3 100644 --- a/vm/compiler/Compiler.c +++ b/vm/compiler/Compiler.c @@ -178,8 +178,8 @@ bool dvmCompilerSetupCodeCache(void) gDvmJit.codeCacheByteUsed = templateSize; /* Only flush the part in the code cache that is being used now */ - cacheflush((intptr_t) gDvmJit.codeCache, - (intptr_t) gDvmJit.codeCache + templateSize, 0); + dvmCompilerCacheFlush((intptr_t) gDvmJit.codeCache, + (intptr_t) gDvmJit.codeCache + templateSize, 0); int result = mprotect(gDvmJit.codeCache, gDvmJit.codeCacheSize, PROTECT_CODE_CACHE_ATTRS); @@ -281,8 +281,9 @@ static void resetCodeCache(void) memset((char *) gDvmJit.codeCache + gDvmJit.templateSize, 0, gDvmJit.codeCacheByteUsed - gDvmJit.templateSize); - cacheflush((intptr_t) gDvmJit.codeCache, - (intptr_t) gDvmJit.codeCache + gDvmJit.codeCacheByteUsed, 0); + dvmCompilerCacheFlush((intptr_t) gDvmJit.codeCache, + (intptr_t) gDvmJit.codeCache + + gDvmJit.codeCacheByteUsed, 0); PROTECT_CODE_CACHE(gDvmJit.codeCache, gDvmJit.codeCacheByteUsed); |