< prev index next >

src/java.base/share/native/libjava/VirtualThread.c

Print this page
@@ -36,11 +36,19 @@
      { "notifyJvmtiEnd",            "()V",  (void *)&JVM_VirtualThreadEnd },
      { "notifyJvmtiMount",          "(Z)V", (void *)&JVM_VirtualThreadMount },
      { "notifyJvmtiUnmount",        "(Z)V", (void *)&JVM_VirtualThreadUnmount },
      { "notifyJvmtiHideFrames",     "(Z)V", (void *)&JVM_VirtualThreadHideFrames },
      { "notifyJvmtiDisableSuspend", "(Z)V", (void *)&JVM_VirtualThreadDisableSuspend },
+     { "setLockId",                 "(J)V", (void *)&JVM_SetLockId},
+     { "takeVirtualThreadListToUnblock", "()" VIRTUAL_THREAD, (void *)&JVM_TakeVirtualThreadListToUnblock},
  };
  
  JNIEXPORT void JNICALL
  Java_java_lang_VirtualThread_registerNatives(JNIEnv *env, jclass clazz) {
      (*env)->RegisterNatives(env, clazz, methods, (sizeof(methods)/sizeof(methods[0])));
  }
+ 
+ JNIEXPORT void JNICALL
+ Java_java_lang_VirtualThread_virtualThreadPinnedEvent(JNIEnv *env, jclass ignored, jint reason)
+ {
+     JVM_VirtualThreadPinnedEvent(reason);
+ }
< prev index next >