< prev index next >

src/hotspot/share/prims/jniCheck.cpp

Print this page
@@ -2012,11 +2012,20 @@
  
  JNI_ENTRY_CHECKED(jobject,
    checked_jni_GetModule(JNIEnv *env,
                          jclass clazz))
      functionEnter(thr);
-     jobject result = UNCHECKED()->GetModule(env,clazz);
+     jobject result = UNCHECKED()->GetModule(env, clazz);
+     functionExit(thr);
+     return result;
+ JNI_END
+ 
+ JNI_ENTRY_CHECKED(jboolean,
+   checked_jni_IsVirtualThread(JNIEnv *env,
+                               jobject obj))
+     functionEnter(thr);
+     jboolean result = UNCHECKED()->IsVirtualThread(env, obj);
      functionExit(thr);
      return result;
  JNI_END
  
  /*

@@ -2302,11 +2311,15 @@
  
      checked_jni_GetObjectRefType,
  
      // Module Features
  
-     checked_jni_GetModule
+     checked_jni_GetModule,
+ 
+     // Loom
+ 
+     checked_jni_IsVirtualThread
  };
  
  
  // Returns the function structure
  struct JNINativeInterface_* jni_functions_check() {
< prev index next >