summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2019-06-29 23:14:49 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-06-29 23:14:49 +0000
commit6c1bdc2d5d056f7837f5bccc5312d5d17dd41da1 (patch)
treeae4e93d29900d780a087dfb022b226dedb828592
parent2ae5f9391a94fe9d9ef08597393c179fd6a26610 (diff)
parent492ed3575e7e7a5878572781937cbab04f27c2d7 (diff)
downloadart-android10-mainline-release.tar.gz
Change-Id: I72edff04944337899cb72903fb6309d6bb10cd80
-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);
}