diff options
Diffstat (limited to 'runtime/art_method.cc')
-rw-r--r-- | runtime/art_method.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/runtime/art_method.cc b/runtime/art_method.cc index c8b16990b2..2b59f38ed6 100644 --- a/runtime/art_method.cc +++ b/runtime/art_method.cc @@ -487,9 +487,8 @@ static const OatFile::OatMethod FindOatMethodFromDexFileFor(ArtMethod* method, b const DexFile* dex_file = method->GetDexFile(); // recreate the class_def_index from the descriptor. - std::string descriptor_storage; const dex::TypeId* declaring_class_type_id = - dex_file->FindTypeId(method->GetDeclaringClass()->GetDescriptor(&descriptor_storage)); + dex_file->FindTypeId(method->GetDeclaringClassDescriptor()); CHECK(declaring_class_type_id != nullptr); dex::TypeIndex declaring_class_type_index = dex_file->GetIndexForTypeId(*declaring_class_type_id); const dex::ClassDef* declaring_class_type_def = @@ -846,8 +845,7 @@ std::string ArtMethod::PrettyMethod(ArtMethod* m, bool with_signature) { std::string ArtMethod::PrettyMethod(bool with_signature) { if (UNLIKELY(IsRuntimeMethod())) { - std::string result = GetDeclaringClassDescriptor(); - result += '.'; + std::string result = "<runtime method>."; result += GetName(); // Do not add "<no signature>" even if `with_signature` is true. return result; |