summaryrefslogtreecommitdiff
path: root/runtime/interpreter/unstarted_runtime.cc
diff options
context:
space:
mode:
author android-build-team Robot <android-build-team-robot@google.com> 2018-04-08 07:21:37 +0000
committer android-build-team Robot <android-build-team-robot@google.com> 2018-04-08 07:21:37 +0000
commit4b86ef5422e36e5b852a8208f59ac93c169f7ecb (patch)
tree6debc967f7886e7e25905bc9e04d153ed12584a4 /runtime/interpreter/unstarted_runtime.cc
parent406cfc2782cd6ba93a4162c066a0d13cbf4967a2 (diff)
parentc3dbfcc312774563c28f70c5c83c8bca5c894a9a (diff)
Snap for 4706961 from c3dbfcc312774563c28f70c5c83c8bca5c894a9a to pi-release
Change-Id: I7ad2b8bfacd5035ad9d01ae3601c431c21102feb
Diffstat (limited to 'runtime/interpreter/unstarted_runtime.cc')
-rw-r--r--runtime/interpreter/unstarted_runtime.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/interpreter/unstarted_runtime.cc b/runtime/interpreter/unstarted_runtime.cc
index 4a2dd3bc3f..6e920363e8 100644
--- a/runtime/interpreter/unstarted_runtime.cc
+++ b/runtime/interpreter/unstarted_runtime.cc
@@ -181,11 +181,13 @@ static mirror::String* GetClassName(Thread* self, ShadowFrame* shadow_frame, siz
template<typename T>
static ALWAYS_INLINE bool ShouldBlockAccessToMember(T* member, ShadowFrame* frame)
REQUIRES_SHARED(Locks::mutator_lock_) {
- return hiddenapi::ShouldBlockAccessToMember(
+ // All uses in this file are from reflection
+ constexpr hiddenapi::AccessMethod access_method = hiddenapi::kReflection;
+ return hiddenapi::GetMemberAction(
member,
frame->GetMethod()->GetDeclaringClass()->GetClassLoader(),
frame->GetMethod()->GetDeclaringClass()->GetDexCache(),
- hiddenapi::kReflection); // all uses in this file are from reflection
+ access_method) == hiddenapi::kDeny;
}
void UnstartedRuntime::UnstartedClassForNameCommon(Thread* self,