diff --git a/runtime/native/jvm.cpp b/runtime/native/jvm.cpp index efbfa45c..e2ad3478 100644 --- a/runtime/native/jvm.cpp +++ b/runtime/native/jvm.cpp @@ -362,7 +362,7 @@ void JVM_SetThreadPriority(JNIEnv *env, jobject thread, jint prio) { } void JVM_Yield(JNIEnv *env, jclass threadClass) { - pthread_yield(); + sched_yield(); return; }