summaryrefslogtreecommitdiffstats
path: root/runtime/mirror/art_method.h
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2014-10-28 18:12:55 -0700
committerIan Rogers <irogers@google.com>2014-10-28 18:36:32 -0700
commitded66a01f81812e0129d17c3d08d5eda18433062 (patch)
tree74a3f7bad1c020b0136d6c173633a361a479f5cb /runtime/mirror/art_method.h
parente0205d519dd417f749243b42b8711dfa313e5390 (diff)
downloadandroid_art-ded66a01f81812e0129d17c3d08d5eda18433062.tar.gz
android_art-ded66a01f81812e0129d17c3d08d5eda18433062.tar.bz2
android_art-ded66a01f81812e0129d17c3d08d5eda18433062.zip
Move MethodHelper::GetReturnType to mirror::ArtMethod.
Also, fix missing handle in HasSameSignatureWithDifferentClassLoaders. Change-Id: I9e1ffd09be950ecc8346fc3c485760d82d9ecab3
Diffstat (limited to 'runtime/mirror/art_method.h')
-rw-r--r--runtime/mirror/art_method.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/mirror/art_method.h b/runtime/mirror/art_method.h
index 92b2c306c6..9bb838b369 100644
--- a/runtime/mirror/art_method.h
+++ b/runtime/mirror/art_method.h
@@ -505,6 +505,10 @@ class MANAGED ArtMethod FINAL : public Object {
const char* GetTypeDescriptorFromTypeIdx(uint16_t type_idx)
SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
+ // May cause thread suspension due to GetClassFromTypeIdx calling ResolveType this caused a large
+ // number of bugs at call sites.
+ mirror::Class* GetReturnType(bool resolve = true) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
+
mirror::ClassLoader* GetClassLoader() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
mirror::DexCache* GetDexCache() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);