summaryrefslogtreecommitdiff
path: root/runtime/jit/jit_code_cache.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2018-06-01 13:14:32 +0100
committer Vladimir Marko <vmarko@google.com> 2018-06-01 16:31:30 +0100
commitbcf175247272d0e321c8d988c3c01c123b56e36e (patch)
tree9f65ece5ce9474aa4fcf16fbfca6278109dc9a67 /runtime/jit/jit_code_cache.cc
parent09c5ca40635faee00f40f6ca0581dd475efd545e (diff)
ObjPtr<>-ify array allocations.
And remove some unnecessary calls to ObjPtr<>::Ptr(). Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Bug: 31113334 Change-Id: Ie313980f7f23b33b0ccea4fa8d5131d643c59080
Diffstat (limited to 'runtime/jit/jit_code_cache.cc')
-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 d8aa00c45e..b010650345 100644
--- a/runtime/jit/jit_code_cache.cc
+++ b/runtime/jit/jit_code_cache.cc
@@ -471,7 +471,7 @@ static void FillRootTable(uint8_t* roots_data, Handle<mirror::ObjectArray<mirror
if (kIsDebugBuild) {
// Ensure the string is strongly interned. b/32995596
if (object->IsString()) {
- ObjPtr<mirror::String> str = reinterpret_cast<mirror::String*>(object.Ptr());
+ ObjPtr<mirror::String> str = ObjPtr<mirror::String>::DownCast(object);
ClassLinker* class_linker = Runtime::Current()->GetClassLinker();
CHECK(class_linker->GetInternTable()->LookupStrong(Thread::Current(), str) != nullptr);
}