From d07f5d926ac1bb4f47bc8926d972fb59309d4ecb Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Mon, 14 Feb 2022 08:29:19 +0000 Subject: [PATCH] Call the right JNI helper. The method returns void, so we should use CallStaticVoidMethod. Test: test_com.android.art Bug: 218518604 Change-Id: I911b6b62cb00f52565a3a95b111b80115f4df3a1 --- core/jni/com_android_internal_os_Zygote.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/jni/com_android_internal_os_Zygote.cpp b/core/jni/com_android_internal_os_Zygote.cpp index aacf700b1168..4fb39da4864e 100644 --- a/core/jni/com_android_internal_os_Zygote.cpp +++ b/core/jni/com_android_internal_os_Zygote.cpp @@ -1620,7 +1620,7 @@ static void SpecializeCommon(JNIEnv* env, uid_t uid, gid_t gid, jintArray gids, } // Also prefetch standalone system server jars. The reason for doing this here is the same // as above. - env->CallStaticObjectMethod(gZygoteInitClass, gPrefetchStandaloneSystemServerJars); + env->CallStaticVoidMethod(gZygoteInitClass, gPrefetchStandaloneSystemServerJars); if (env->ExceptionCheck()) { env->ExceptionClear(); }