Change some well-known methods to `ArtMethod*`.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Change-Id: I8a92108f8dc8b206f239c1f1a1e35b4472bf294a
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc
index 8882966..bc0ac6b 100644
--- a/runtime/class_linker.cc
+++ b/runtime/class_linker.cc
@@ -1141,6 +1141,8 @@
WellKnownClasses::java_lang_Integer_valueOf,
WellKnownClasses::java_lang_Long_valueOf,
WellKnownClasses::java_lang_Short_valueOf,
+ // Ensure `DirectByteBuffer` class is initialized (avoid check at runtime).
+ WellKnownClasses::java_nio_DirectByteBuffer_init,
// Ensure reflection annotation classes are initialized (avoid check at runtime).
WellKnownClasses::libcore_reflect_AnnotationFactory_createAnnotation,
WellKnownClasses::libcore_reflect_AnnotationMember_init,
@@ -1152,6 +1154,8 @@
EnsureRootInitialized(this, self, method->GetDeclaringClass());
}
ArtField* static_fields_of_classes_to_initialize[] = {
+ // Ensure `VMRuntime` is initialized (avoid check at runtime).
+ WellKnownClasses::dalvik_system_VMRuntime_nonSdkApiUsageConsumer,
// Initialize empty arrays needed by `StackOverflowError`.
WellKnownClasses::java_util_Collections_EMPTY_LIST,
WellKnownClasses::libcore_util_EmptyArray_STACK_TRACE_ELEMENT,