< prev index next >

src/java.base/share/native/include/jni.h

Print this page
*** 768,10 ***
--- 768,15 ---
  
      /* Module Features */
  
      jobject (JNICALL *GetModule)
         (JNIEnv* env, jclass clazz);
+ 
+     /* Loom */
+ 
+     jboolean (JNICALL *IsVirtualThread)
+        (JNIEnv* env, jobject obj);
  };
  
  /*
   * We use inlined functions for C++ so that programmers can write:
   *

*** 1866,10 ***
--- 1871,16 ---
  
      jobject GetModule(jclass clazz) {
          return functions->GetModule(this, clazz);
      }
  
+     /* Loom */
+ 
+     jboolean IsVirtualThread(jobject obj) {
+         return functions->IsVirtualThread(this, obj);
+     }
+ 
  #endif /* __cplusplus */
  };
  
  /*
   * optionString may be any option accepted by the JVM, or one of the
< prev index next >