diff options
author | 2023-11-20 11:00:15 +0100 | |
---|---|---|
committer | 2023-11-20 12:04:25 +0000 | |
commit | d840ff0ff0fc409c3d2fef2a4d516551ed4c322b (patch) | |
tree | fa369a2a00821ecd19fc350291bcec99b646c3ea /compiler/optimizing/intrinsics.cc | |
parent | 4f2fcccce50f229cb2b00cc07c040473a59c120b (diff) |
Clean up after putting boxed caches to boot image.
Clean up after
https://android-review.googlesource.com/2824676 .
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Change-Id: Ic5ae98148499b8195669c7c81e7bffef9c8c9aa2
Diffstat (limited to 'compiler/optimizing/intrinsics.cc')
-rw-r--r-- | compiler/optimizing/intrinsics.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/optimizing/intrinsics.cc b/compiler/optimizing/intrinsics.cc index e443a51889..d9623c0abb 100644 --- a/compiler/optimizing/intrinsics.cc +++ b/compiler/optimizing/intrinsics.cc @@ -124,21 +124,21 @@ static bool CheckIntegerCache(ObjPtr<mirror::ObjectArray<mirror::Object>> boot_i ObjPtr<mirror::Class> integer_class = WellKnownClasses::java_lang_Integer.Get(); DCHECK(integer_class->IsInitialized()); - ObjPtr<mirror::ObjectArray<mirror::Object>> boot_image_cache = GetIntegerCacheArray(cache_class); - if (!IntrinsicVisitor::CheckIntegerCacheFields(boot_image_cache)) { + ObjPtr<mirror::ObjectArray<mirror::Object>> current_cache = GetIntegerCacheArray(cache_class); + if (!IntrinsicVisitor::CheckIntegerCacheFields(current_cache)) { return false; } // Check that the elements match the boot image intrinsic objects and check their values as well. ArtField* value_field = integer_class->FindDeclaredInstanceField(kValueFieldName, "I"); DCHECK(value_field != nullptr); - for (int32_t i = 0, len = boot_image_cache->GetLength(); i != len; ++i) { + for (int32_t i = 0, len = current_cache->GetLength(); i != len; ++i) { ObjPtr<mirror::Object> boot_image_object = IntrinsicObjects::GetIntegerValueOfObject(boot_image_live_objects, i); DCHECK(Runtime::Current()->GetHeap()->ObjectIsInBootImageSpace(boot_image_object)); // No need for read barrier for comparison with a boot image object. ObjPtr<mirror::Object> current_object = - boot_image_cache->GetWithoutChecks<kVerifyNone, kWithoutReadBarrier>(i); + current_cache->GetWithoutChecks<kVerifyNone, kWithoutReadBarrier>(i); if (boot_image_object != current_object) { return false; // Messed up IntegerCache.cache[i] } |