diff options
author | 2025-02-07 10:35:35 +0000 | |
---|---|---|
committer | 2025-02-10 01:07:50 -0800 | |
commit | 6ebd0862f7f91b8ff7c6ba4d3082474940893434 (patch) | |
tree | 167db63dc63c66f638f7a535239f7dba57e7a042 /runtime/native/java_lang_VMClassLoader.cc | |
parent | 6fbb37a7513bf93f63f7a84925cc4d9913590abd (diff) |
Use `std::string_view` for `DescriptorToDot()`, ...
... `DotToDescriptor()` and `DescriptorToName()` parameter.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 338123769
Change-Id: I9cda6e70f52ed8779fcd532a4e34515c12c40c78
Diffstat (limited to 'runtime/native/java_lang_VMClassLoader.cc')
-rw-r--r-- | runtime/native/java_lang_VMClassLoader.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/native/java_lang_VMClassLoader.cc b/runtime/native/java_lang_VMClassLoader.cc index eeae51c5e7..c723a1291a 100644 --- a/runtime/native/java_lang_VMClassLoader.cc +++ b/runtime/native/java_lang_VMClassLoader.cc @@ -84,7 +84,7 @@ static jclass VMClassLoader_findLoadedClass(JNIEnv* env, jclass, jobject javaLoa ClassLinker* cl = Runtime::Current()->GetClassLinker(); // Compute hash once. - std::string descriptor(DotToDescriptor(name.c_str())); + std::string descriptor = DotToDescriptor(name); const size_t descriptor_hash = ComputeModifiedUtf8Hash(descriptor); ObjPtr<mirror::Class> c = VMClassLoader::LookupClass(cl, |