Allow ArtMethod::Invoke in unstarted runtimes.
Change-Id: I0141f4daef4751589d03d27484eb65c811b14f27
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc
index 703229c..db46224 100644
--- a/runtime/class_linker.cc
+++ b/runtime/class_linker.cc
@@ -3215,12 +3215,8 @@
mirror::ArtMethod* clinit = klass->FindClassInitializer();
if (clinit != NULL) {
CHECK(can_init_statics);
- if (LIKELY(Runtime::Current()->IsStarted())) {
- JValue result;
- clinit->Invoke(self, NULL, 0, &result, "V");
- } else {
- art::interpreter::EnterInterpreterFromInvoke(self, clinit, NULL, NULL, NULL);
- }
+ JValue result;
+ clinit->Invoke(self, NULL, 0, &result, "V");
}
uint64_t t1 = NanoTime();