summaryrefslogtreecommitdiff
path: root/runtime/class_linker.cc
diff options
context:
space:
mode:
author Almaz Mingaleev <mingaleev@google.com> 2023-09-21 10:01:22 +0100
committer Almaz Mingaleev <mingaleev@google.com> 2023-09-25 09:26:56 +0000
commit6c864435021a44110c39b93ca48fa960e382e4c0 (patch)
treefa5d81d3c74ffd0e860e89806965b6fb2c728857 /runtime/class_linker.cc
parent1de4f98268a1284294e94882ee29192b445b86e5 (diff)
Use the same cache for MethodType-s created in native and managed code.
Bug: 297147201 Test: ./art/test/testrunner/testrunner.py --host --64 --optimizing -b Test: ./art/test/testrunner/testrunner.py --jvm -b Test: ./art/test.py --host -b Change-Id: I55a47439682f1a5903b0e47491e739434e04470f
Diffstat (limited to 'runtime/class_linker.cc')
-rw-r--r--runtime/class_linker.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc
index 1edb694a1d..775cc9d0b9 100644
--- a/runtime/class_linker.cc
+++ b/runtime/class_linker.cc
@@ -1191,8 +1191,9 @@ void ClassLinker::RunRootClinits(Thread* self) {
WellKnownClasses::java_lang_reflect_InvocationTargetException_init,
// Ensure `Parameter` class is initialized (avoid check at runtime).
WellKnownClasses::java_lang_reflect_Parameter_init,
- // Ensure `MethodHandles` class is initialized (avoid check at runtime).
+ // Ensure `MethodHandles` and `MethodType` classes are initialized (avoid check at runtime).
WellKnownClasses::java_lang_invoke_MethodHandles_lookup,
+ WellKnownClasses::java_lang_invoke_MethodType_makeImpl,
// Ensure `DirectByteBuffer` class is initialized (avoid check at runtime).
WellKnownClasses::java_nio_DirectByteBuffer_init,
// Ensure `FloatingDecimal` class is initialized (avoid check at runtime).