Call the right JNI helper.

The method returns void, so we should use CallStaticVoidMethod.

Test: test_com.android.art
Bug: 218518604
Change-Id: I911b6b62cb00f52565a3a95b111b80115f4df3a1
This commit is contained in:
Nicolas Geoffray 2022-02-14 08:29:19 +00:00
parent c9a39b3066
commit d07f5d926a

View File

@ -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();
}