func callClinit(thread *Thread, class *rtc.Class) { clinit := class.GetClinitMethod() if clinit == nil { clinit = rtc.ReturnMethod() // just do nothing } // exec <clinit> newFrame := thread.NewFrame(clinit) newFrame.SetOnPopAction(func() { // step 10 initSucceeded(class) }) thread.PushFrame(newFrame) }