From f850690a901c01d95210e3ecf66aa7255206aafc Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Fri, 14 Jun 2024 11:58:13 +0000 Subject: Use `ClassAccessor::GetViewDescriptor()` more. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Bug: 338123769 Change-Id: Ib8206f037ece05374e16b8a3816520ea9bc70931 --- dex2oat/driver/compiler_driver.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dex2oat/driver/compiler_driver.cc') diff --git a/dex2oat/driver/compiler_driver.cc b/dex2oat/driver/compiler_driver.cc index fc2d94a342..ddf9bbda84 100644 --- a/dex2oat/driver/compiler_driver.cc +++ b/dex2oat/driver/compiler_driver.cc @@ -1813,7 +1813,8 @@ static void LoadAndUpdateStatus(const ClassAccessor& accessor, // a boot image class, or a class in a different dex file for multidex, and // we should not update the status in that case. if (&cls->GetDexFile() == &accessor.GetDexFile()) { - VLOG(compiler) << "Updating class status of " << accessor.GetDescriptor() << " to " << status; + VLOG(compiler) << "Updating class status of " << accessor.GetDescriptorView() + << " to " << status; ObjectLock lock(self, cls); mirror::Class::SetStatus(cls, status, self); } @@ -1880,7 +1881,7 @@ bool CompilerDriver::FastVerify(jobject jclass_loader, // If the class will be in the image, we can rely on the ArtMethods // telling that they need access checks. VLOG(compiler) << "Promoting " - << std::string(accessor.GetDescriptor()) + << accessor.GetDescriptorView() << " from needs access checks to verified given it is an image class"; status = ClassStatus::kVerified; } -- cgit v1.2.3-59-g8ed1b