summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2019-06-29 23:17:09 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-06-29 23:17:09 +0000
commitdc8b152a38ecc359e56529a074fe6f4331a8290d (patch)
treeae4e93d29900d780a087dfb022b226dedb828592
parentdf7af976b388a8ad010c68f812ebdaa40c98d324 (diff)
parent83a42fd1e4ce5d6b1f765b3993b565afe75176d4 (diff)
downloadart-android10-qpr1-b-release.tar.gz
Change-Id: If813e211df468e3cc44cec8a5514f44ab573e886
-rw-r--r--runtime/jit/jit_code_cache.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/jit/jit_code_cache.cc b/runtime/jit/jit_code_cache.cc
index 333f2da136..a6aefc4773 100644
--- a/runtime/jit/jit_code_cache.cc
+++ b/runtime/jit/jit_code_cache.cc
@@ -1060,8 +1060,8 @@ uint8_t* JitCodeCache::CommitCodeInternal(Thread* self,
}
// Invalidate i-cache for the executable mapping.
- uint8_t* x_memory = reinterpret_cast<uint8_t*>(method_header);
if (cache_flush_success) {
+ uint8_t* x_memory = reinterpret_cast<uint8_t*>(FromCodeToAllocation(code_ptr));
cache_flush_success = FlushCpuCaches(x_memory, x_memory + total_size);
}