diff options
author | 2018-06-01 13:14:32 +0100 | |
---|---|---|
committer | 2018-06-01 16:31:30 +0100 | |
commit | bcf175247272d0e321c8d988c3c01c123b56e36e (patch) | |
tree | 9f65ece5ce9474aa4fcf16fbfca6278109dc9a67 /runtime/jit/jit_code_cache.cc | |
parent | 09c5ca40635faee00f40f6ca0581dd475efd545e (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.cc | 2 |
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); } |