diff options
| author | 2019-03-28 13:48:31 +0000 | |
|---|---|---|
| committer | 2019-03-29 09:50:00 +0000 | |
| commit | 4617d5823c8e7841fed813b3b9c72664d7fd4dc6 (patch) | |
| tree | 9eafbee06717e02a2c4acd5d7ce1e6601955356e /runtime/class_loader_context.cc | |
| parent | d7e9bbf092b5a61048358fd54183526ef12284af (diff) | |
ObjPtr<>-ify mirror::Object::As*(), fix stale refs in test.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 31113334
Change-Id: Ia04c4996f5cbfa1f26acbadcd747342c57b1aac3
Diffstat (limited to 'runtime/class_loader_context.cc')
| -rw-r--r-- | runtime/class_loader_context.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/class_loader_context.cc b/runtime/class_loader_context.cc index e890c1f66b..66d134e7ee 100644 --- a/runtime/class_loader_context.cc +++ b/runtime/class_loader_context.cc @@ -865,7 +865,7 @@ static bool CollectDexFilesFromJavaDexFile(ObjPtr<mirror::Object> java_dex_file, return true; } // On the Java side, the dex files are stored in the cookie field. - mirror::LongArray* long_array = cookie_field->GetObject(java_dex_file)->AsLongArray(); + ObjPtr<mirror::LongArray> long_array = cookie_field->GetObject(java_dex_file)->AsLongArray(); if (long_array == nullptr) { // This should never happen so log a warning. LOG(ERROR) << "Unexpected null cookie"; |