summaryrefslogtreecommitdiff
path: root/runtime/class_linker.cc
diff options
context:
space:
mode:
author Almaz Mingaleev <mingaleev@google.com> 2023-11-22 15:49:15 +0000
committer Almaz Mingaleev <mingaleev@google.com> 2023-11-22 18:00:29 +0000
commitee42bfabf395b5c1c6cfd83aba7894d7e77ab86f (patch)
tree49bc53eff685710407acd9b69f165cb1493561a3 /runtime/class_linker.cc
parent8740b1b17254c3927b77d292bed8c2c3ec4e9c43 (diff)
Revert^4 "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: Ic7bf58add0bb3c79fceae8aeecff8976cb22cb07
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 42027cc223..6f819cf2e5 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).