Change well-known `DdmServer` methods to `ArtMethod*`.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing --interpreter
Test: run-libjdwp-tests.sh --mode=device --variant=X32 --debug
Change-Id: I31c61424a81037a20d4a6bceb081915da067d87f
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc
index 12ed605..77de012 100644
--- a/runtime/class_linker.cc
+++ b/runtime/class_linker.cc
@@ -1141,6 +1141,9 @@
WellKnownClasses::java_lang_Integer_valueOf,
WellKnownClasses::java_lang_Long_valueOf,
WellKnownClasses::java_lang_Short_valueOf,
+ // We're suppressing exceptions from `DdmServer` and we do not want to repeatedly
+ // suppress class initialization error (say, due to OOM), so initialize it early.
+ WellKnownClasses::org_apache_harmony_dalvik_ddmc_DdmServer_dispatch,
};
for (ArtMethod* method : static_methods_of_classes_to_initialize) {
EnsureRootInitialized(this, self, method->GetDeclaringClass());