diff options
author | 2019-03-26 15:17:21 +0000 | |
---|---|---|
committer | 2019-03-27 09:45:20 +0000 | |
commit | 423bebb17f15c3867a52315f0ae421f08f14544f (patch) | |
tree | 97bdf50c7144ae21e6abfe8bdc26858a6a10f94d /runtime/class_loader_context.cc | |
parent | 93d99f3665cbd890509f4c707e1a62c5f26d320e (diff) |
ObjPtr<>-ify mirror::ObjectArray.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 31113334
Change-Id: I611b3e49d3feed306f6cd35d2b662a1e727e24c6
Diffstat (limited to 'runtime/class_loader_context.cc')
-rw-r--r-- | runtime/class_loader_context.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/class_loader_context.cc b/runtime/class_loader_context.cc index 165b42d9bb..e811afdb58 100644 --- a/runtime/class_loader_context.cc +++ b/runtime/class_loader_context.cc @@ -927,7 +927,7 @@ static bool CollectDexFilesFromSupportedClassLoader(ScopedObjectAccessAlreadyRun Handle<mirror::ObjectArray<mirror::Object>> dex_elements( hs.NewHandle(dex_elements_obj->AsObjectArray<mirror::Object>())); for (int32_t i = 0; i < dex_elements->GetLength(); ++i) { - mirror::Object* element = dex_elements->GetWithoutChecks(i); + ObjPtr<mirror::Object> element = dex_elements->GetWithoutChecks(i); if (element == nullptr) { // Should never happen, log an error and break. // TODO(calin): It's unclear if we should just assert here. @@ -962,7 +962,7 @@ static bool GetDexFilesFromDexElementsArray( WellKnownClasses::dalvik_system_DexFile); for (int32_t i = 0; i < dex_elements->GetLength(); ++i) { - mirror::Object* element = dex_elements->GetWithoutChecks(i); + ObjPtr<mirror::Object> element = dex_elements->GetWithoutChecks(i); // We can hit a null element here because this is invoked with a partially filled dex_elements // array from DexPathList. DexPathList will open each dex sequentially, each time passing the // list of dex files which were opened before. |