aboutsummaryrefslogtreecommitdiff
path: root/vm/compiler/Compiler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vm/compiler/Compiler.cpp')
-rw-r--r--vm/compiler/Compiler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/vm/compiler/Compiler.cpp b/vm/compiler/Compiler.cpp
index c08d42dfb..83ed5b8f6 100644
--- a/vm/compiler/Compiler.cpp
+++ b/vm/compiler/Compiler.cpp
@@ -313,9 +313,9 @@ static void resetCodeCache(void)
* Wipe out the code cache content to force immediate crashes if
* stale JIT'ed code is invoked.
*/
- memset((char *) gDvmJit.codeCache + gDvmJit.templateSize,
- 0,
- gDvmJit.codeCacheByteUsed - gDvmJit.templateSize);
+ dvmCompilerCacheClear((char *) gDvmJit.codeCache + gDvmJit.templateSize,
+ gDvmJit.codeCacheByteUsed - gDvmJit.templateSize);
+
dvmCompilerCacheFlush((intptr_t) gDvmJit.codeCache,
(intptr_t) gDvmJit.codeCache +
gDvmJit.codeCacheByteUsed, 0);