From 01df4b3a9bb31f21f451452f0ce47632dd8916ad Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Tue, 5 Nov 2024 14:33:29 +0000 Subject: Avoid `strlen()` for `ClassLinker::FindClass()`... ... and related functions in most cases. Note that the `CompilerDriver` previously resolved the `ClassLoader` and `TransactionAbortError` using the provided class loaders. We're now using the `ClassLoader` from the class roots and resolving the `TransactionAbortError` in the BCP class loader. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Bug: 181943478 Bug: 338123769 Change-Id: I38e480cdcdb8bf02c958e4d0773437f5766f6be0 --- compiler/exception_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/exception_test.cc') diff --git a/compiler/exception_test.cc b/compiler/exception_test.cc index 0e289353c7..4eae96158e 100644 --- a/compiler/exception_test.cc +++ b/compiler/exception_test.cc @@ -61,7 +61,7 @@ class ExceptionTest : public CommonRuntimeTest { StackHandleScope<2> hs(soa.Self()); Handle class_loader( hs.NewHandle(soa.Decode(LoadDex("ExceptionHandle")))); - my_klass_ = class_linker_->FindClass(soa.Self(), "LExceptionHandle;", class_loader); + my_klass_ = FindClass("LExceptionHandle;", class_loader); ASSERT_TRUE(my_klass_ != nullptr); Handle klass(hs.NewHandle(my_klass_)); class_linker_->EnsureInitialized(soa.Self(), klass, true, true); -- cgit v1.2.3-59-g8ed1b