diff options
| author | 2017-02-02 17:51:04 +0000 | |
|---|---|---|
| committer | 2017-02-02 17:51:04 +0000 | |
| commit | afdd4ce489fb06be35c50e7ed80a931f70b92870 (patch) | |
| tree | 0cc088f1cd9935155b9ee5765a4c8de1fff8eced /runtime/art_method-inl.h | |
| parent | 64d324df5af6e77faf542f8a83518eb3048c92c3 (diff) | |
| parent | 90c5a9b889af84cbb840c60e461d5bdbf8dc0df6 (diff) | |
Merge "Various improvements to stack walking speed"
Diffstat (limited to 'runtime/art_method-inl.h')
| -rw-r--r-- | runtime/art_method-inl.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/art_method-inl.h b/runtime/art_method-inl.h index 7ec3900aa9..950f1aa9f4 100644 --- a/runtime/art_method-inl.h +++ b/runtime/art_method-inl.h @@ -374,9 +374,10 @@ inline mirror::DexCache* ArtMethod::GetDexCache() { } } -template<ReadBarrierOption kReadBarrierOption> inline bool ArtMethod::IsProxyMethod() { - return GetDeclaringClass<kReadBarrierOption>()->IsProxyClass(); + // Avoid read barrier since the from-space version of the class will have the correct proxy class + // flags since they are constant for the lifetime of the class. + return GetDeclaringClass<kWithoutReadBarrier>()->IsProxyClass(); } inline ArtMethod* ArtMethod::GetInterfaceMethodIfProxy(PointerSize pointer_size) { |