summaryrefslogtreecommitdiff
path: root/runtime/hidden_api.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2022-11-18 10:55:05 +0000
committer VladimĂ­r Marko <vmarko@google.com> 2022-11-21 14:25:03 +0000
commitf7bd1fa21250302ef885ffef3b1e096d53b0845c (patch)
treecf2deeb39a4f19550c9190f958171dadd932b950 /runtime/hidden_api.cc
parentf356dcd48faaab0bb78fe085b9d429ff4cdd6d59 (diff)
Change well known thread methods to `ArtMethod*`.
Also rename `java_lang_ThreadGroup_removeThread` to `java_lang_ThreadGroup_threadTerminated` in line with the actual method it references. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Change-Id: Iaf2644d006f44759a47587c82db2dcdba0bfa67e
Diffstat (limited to 'runtime/hidden_api.cc')
-rw-r--r--runtime/hidden_api.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/runtime/hidden_api.cc b/runtime/hidden_api.cc
index ba317c872d..315eb898cb 100644
--- a/runtime/hidden_api.cc
+++ b/runtime/hidden_api.cc
@@ -432,9 +432,7 @@ void MemberSignature::NotifyHiddenApiListener(AccessMethod access_method) {
CHECK(signature_str != nullptr);
// Call through to Consumer.accept(String memberSignature);
- ArtMethod* accept_method = consumer_object->GetClass()->FindVirtualMethodForInterface(
- WellKnownClasses::java_util_function_Consumer_accept, kRuntimePointerSize);
- accept_method->InvokeInstance<'V', 'L'>(
+ WellKnownClasses::java_util_function_Consumer_accept->InvokeInterface<'V', 'L'>(
soa.Self(), consumer_object.Get(), signature_str.Get());
}
}