summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2019-06-29 23:19:31 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-06-29 23:19:31 +0000
commitc8f419b02d081c12cd5936ee62f7ec156a5a3ad7 (patch)
treeae4e93d29900d780a087dfb022b226dedb828592
parent570b0d96072e5c08d4f2af43048baa763a129685 (diff)
parent83a42fd1e4ce5d6b1f765b3993b565afe75176d4 (diff)
downloadart-android10-c2f2-s2-release.tar.gz
Change-Id: If8950174fd3c5af15984214add4fcd450b22c4cc
-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);
}