< prev index next >

src/hotspot/share/include/jvm.h

Print this page
*** 214,11 ***
  
  /*
   * java.lang.StackTraceElement
   */
  JNIEXPORT void JNICALL
! JVM_InitStackTraceElementArray(JNIEnv *env, jobjectArray elements, jobject throwable);
  
  JNIEXPORT void JNICALL
  JVM_InitStackTraceElement(JNIEnv* env, jobject element, jobject stackFrameInfo);
  
  /*
--- 214,11 ---
  
  /*
   * java.lang.StackTraceElement
   */
  JNIEXPORT void JNICALL
! JVM_InitStackTraceElementArray(JNIEnv *env, jobjectArray elements, jobject backtrace, jint depth);
  
  JNIEXPORT void JNICALL
  JVM_InitStackTraceElement(JNIEnv* env, jobject element, jobject stackFrameInfo);
  
  /*

*** 238,18 ***
    JVM_STACKWALK_FILL_LIVE_STACK_FRAMES     = 0x100
  };
  
  JNIEXPORT jobject JNICALL
  JVM_CallStackWalk(JNIEnv *env, jobject stackStream, jlong mode,
!                   jint skip_frames, jint frame_count, jint start_index,
!                   jobjectArray frames);
  
  JNIEXPORT jint JNICALL
! JVM_MoreStackWalk(JNIEnv *env, jobject stackStream, jlong mode, jlong anchor,
!                   jint frame_count, jint start_index,
                    jobjectArray frames);
  
  /*
   * java.lang.Thread
   */
  JNIEXPORT void JNICALL
  JVM_StartThread(JNIEnv *env, jobject thread);
--- 238,30 ---
    JVM_STACKWALK_FILL_LIVE_STACK_FRAMES     = 0x100
  };
  
  JNIEXPORT jobject JNICALL
  JVM_CallStackWalk(JNIEnv *env, jobject stackStream, jlong mode,
!                   jint skip_frames, jobject contScope, jobject cont,
!                   jint frame_count, jint start_index, jobjectArray frames);
+ 
+ JNIEXPORT jobject JNICALL
+ JVM_ScopeLocalCache(JNIEnv *env, jclass threadClass);
+ 
+ JNIEXPORT void JNICALL
+ JVM_SetScopeLocalCache(JNIEnv *env, jclass threadClass, jobject theCache);
+ 
+ JNIEXPORT void JNICALL
+ JVM_SetCurrentThread(JNIEnv *env, jclass threadClass, jobject theThread);
  
  JNIEXPORT jint JNICALL
! JVM_MoreStackWalk(JNIEnv *env, jobject stackStream, jlong mode, jlong anchor, 
!                   jint frame_count, jint start_index, 
                    jobjectArray frames);
  
+ JNIEXPORT void JNICALL
+ JVM_SetStackWalkContinuation(JNIEnv *env, jobject stackStream, jlong anchor, jobjectArray frames, jobject cont);
+ 
  /*
   * java.lang.Thread
   */
  JNIEXPORT void JNICALL
  JVM_StartThread(JNIEnv *env, jobject thread);

*** 273,19 ***
--- 285,25 ---
  JVM_Yield(JNIEnv *env, jclass threadClass);
  
  JNIEXPORT void JNICALL
  JVM_Sleep(JNIEnv *env, jclass threadClass, jlong millis);
  
+ JNIEXPORT jobject JNICALL
+ JVM_CurrentThread0(JNIEnv *env, jclass threadClass);
+ 
  JNIEXPORT jobject JNICALL
  JVM_CurrentThread(JNIEnv *env, jclass threadClass);
  
  JNIEXPORT void JNICALL
  JVM_Interrupt(JNIEnv *env, jobject thread);
  
  JNIEXPORT jboolean JNICALL
  JVM_HoldsLock(JNIEnv *env, jclass threadClass, jobject obj);
  
+ JNIEXPORT jobject JNICALL
+ JVM_GetStackTrace(JNIEnv *env, jobject thread);
+ 
  JNIEXPORT void JNICALL
  JVM_DumpAllStacks(JNIEnv *env, jclass unused);
  
  JNIEXPORT jobjectArray JNICALL
  JVM_GetAllThreads(JNIEnv *env, jclass dummy);

*** 295,10 ***
--- 313,16 ---
  
  /* getStackTrace() and getAllStackTraces() method */
  JNIEXPORT jobjectArray JNICALL
  JVM_DumpThreads(JNIEnv *env, jclass threadClass, jobjectArray threads);
  
+ /*
+  * jdk.internal.vm.Continuation
+  */
+ JNIEXPORT void JNICALL
+ JVM_RegisterContinuationMethods(JNIEnv *env, jclass cls);
+ 
  /*
   * java.lang.SecurityManager
   */
  JNIEXPORT jobjectArray JNICALL
  JVM_GetClassContext(JNIEnv *env);

*** 1096,10 ***
--- 1120,24 ---
   * and elements 1 and 2 are the java.lang.Strings for the enclosing
   * method's name and descriptor, respectively.
   */
  JNIEXPORT jobjectArray JNICALL
  JVM_GetEnclosingMethodInfo(JNIEnv* env, jclass ofClass);
+     
+ /* Virtual thread support.
+  */
+ JNIEXPORT void JNICALL
+ JVM_VirtualThreadMountBegin(JNIEnv* env, jobject vthread, jboolean first_mount);
+ 
+ JNIEXPORT void JNICALL
+ JVM_VirtualThreadMountEnd(JNIEnv* env, jobject vthread, jboolean first_mount);
+ 
+ JNIEXPORT void JNICALL
+ JVM_VirtualThreadUnmountBegin(JNIEnv* env, jobject vthread, jboolean last_unmount);
+ 
+ JNIEXPORT void JNICALL
+ JVM_VirtualThreadUnmountEnd(JNIEnv* env, jobject vthread, jboolean last_unmount);
  
  /*
   * This structure is used by the launcher to get the default thread
   * stack size from the VM using JNI_GetDefaultJavaVMInitArgs() with a
   * version of 1.1.  As it is not supported otherwise, it has been removed
< prev index next >