< prev index next >

src/hotspot/share/include/jvm.h

Print this page

 199 
 200 JNIEXPORT void JNICALL
 201 JVM_LogLambdaFormInvoker(JNIEnv* env, jstring line);
 202 
 203 JNIEXPORT void JNICALL
 204 JVM_DumpClassListToFile(JNIEnv* env, jstring fileName);
 205 
 206 JNIEXPORT void JNICALL
 207 JVM_DumpDynamicArchive(JNIEnv* env, jstring archiveName);
 208 
 209 /*
 210  * java.lang.Throwable
 211  */
 212 JNIEXPORT void JNICALL
 213 JVM_FillInStackTrace(JNIEnv *env, jobject throwable);
 214 
 215 /*
 216  * java.lang.StackTraceElement
 217  */
 218 JNIEXPORT void JNICALL
 219 JVM_InitStackTraceElementArray(JNIEnv *env, jobjectArray elements, jobject throwable);
 220 
 221 JNIEXPORT void JNICALL
 222 JVM_InitStackTraceElement(JNIEnv* env, jobject element, jobject stackFrameInfo);
 223 
 224 /*
 225  * java.lang.NullPointerException
 226  */
 227 
 228 JNIEXPORT jstring JNICALL
 229 JVM_GetExtendedNPEMessage(JNIEnv *env, jthrowable throwable);
 230 
 231 /*
 232  * java.lang.StackWalker
 233  */
 234 enum {
 235   JVM_STACKWALK_FILL_CLASS_REFS_ONLY       = 0x2,
 236   JVM_STACKWALK_GET_CALLER_CLASS           = 0x04,
 237   JVM_STACKWALK_SHOW_HIDDEN_FRAMES         = 0x20,
 238   JVM_STACKWALK_FILL_LIVE_STACK_FRAMES     = 0x100
 239 };
 240 
 241 JNIEXPORT jobject JNICALL
 242 JVM_CallStackWalk(JNIEnv *env, jobject stackStream, jlong mode,
 243                   jint skip_frames, jint frame_count, jint start_index,
 244                   jobjectArray frames);









 245 
 246 JNIEXPORT jint JNICALL
 247 JVM_MoreStackWalk(JNIEnv *env, jobject stackStream, jlong mode, jlong anchor,
 248                   jint frame_count, jint start_index,
 249                   jobjectArray frames);
 250 



 251 /*
 252  * java.lang.Thread
 253  */
 254 JNIEXPORT void JNICALL
 255 JVM_StartThread(JNIEnv *env, jobject thread);
 256 
 257 JNIEXPORT void JNICALL
 258 JVM_StopThread(JNIEnv *env, jobject thread, jobject exception);
 259 
 260 JNIEXPORT jboolean JNICALL
 261 JVM_IsThreadAlive(JNIEnv *env, jobject thread);
 262 
 263 JNIEXPORT void JNICALL
 264 JVM_SuspendThread(JNIEnv *env, jobject thread);
 265 
 266 JNIEXPORT void JNICALL
 267 JVM_ResumeThread(JNIEnv *env, jobject thread);
 268 
 269 JNIEXPORT void JNICALL
 270 JVM_SetThreadPriority(JNIEnv *env, jobject thread, jint prio);
 271 
 272 JNIEXPORT void JNICALL
 273 JVM_Yield(JNIEnv *env, jclass threadClass);
 274 
 275 JNIEXPORT void JNICALL
 276 JVM_Sleep(JNIEnv *env, jclass threadClass, jlong millis);
 277 



 278 JNIEXPORT jobject JNICALL
 279 JVM_CurrentThread(JNIEnv *env, jclass threadClass);
 280 
 281 JNIEXPORT void JNICALL
 282 JVM_Interrupt(JNIEnv *env, jobject thread);
 283 
 284 JNIEXPORT jboolean JNICALL
 285 JVM_HoldsLock(JNIEnv *env, jclass threadClass, jobject obj);
 286 



 287 JNIEXPORT void JNICALL
 288 JVM_DumpAllStacks(JNIEnv *env, jclass unused);
 289 
 290 JNIEXPORT jobjectArray JNICALL
 291 JVM_GetAllThreads(JNIEnv *env, jclass dummy);
 292 
 293 JNIEXPORT void JNICALL
 294 JVM_SetNativeThreadName(JNIEnv *env, jobject jthread, jstring name);
 295 
 296 /* getStackTrace() and getAllStackTraces() method */
 297 JNIEXPORT jobjectArray JNICALL
 298 JVM_DumpThreads(JNIEnv *env, jclass threadClass, jobjectArray threads);
 299 






 300 /*
 301  * java.lang.SecurityManager
 302  */
 303 JNIEXPORT jobjectArray JNICALL
 304 JVM_GetClassContext(JNIEnv *env);
 305 
 306 /*
 307  * java.lang.Package
 308  */
 309 JNIEXPORT jstring JNICALL
 310 JVM_GetSystemPackage(JNIEnv *env, jstring name);
 311 
 312 JNIEXPORT jobjectArray JNICALL
 313 JVM_GetSystemPackages(JNIEnv *env);
 314 
 315 /*
 316  * java.lang.ref.Reference
 317  */
 318 JNIEXPORT jobject JNICALL
 319 JVM_GetAndClearReferencePendingList(JNIEnv *env);

1081  */
1082 JNIEXPORT jobject JNICALL
1083 JVM_InitAgentProperties(JNIEnv *env, jobject agent_props);
1084 
1085 JNIEXPORT jstring JNICALL
1086 JVM_GetTemporaryDirectory(JNIEnv *env);
1087 
1088 /* Generics reflection support.
1089  *
1090  * Returns information about the given class's EnclosingMethod
1091  * attribute, if present, or null if the class had no enclosing
1092  * method.
1093  *
1094  * If non-null, the returned array contains three elements. Element 0
1095  * is the java.lang.Class of which the enclosing method is a member,
1096  * and elements 1 and 2 are the java.lang.Strings for the enclosing
1097  * method's name and descriptor, respectively.
1098  */
1099 JNIEXPORT jobjectArray JNICALL
1100 JVM_GetEnclosingMethodInfo(JNIEnv* env, jclass ofClass);














1101 
1102 /*
1103  * This structure is used by the launcher to get the default thread
1104  * stack size from the VM using JNI_GetDefaultJavaVMInitArgs() with a
1105  * version of 1.1.  As it is not supported otherwise, it has been removed
1106  * from jni.h
1107  */
1108 typedef struct JDK1_1InitArgs {
1109     jint version;
1110 
1111     char **properties;
1112     jint checkSource;
1113     jint nativeStackSize;
1114     jint javaStackSize;
1115     jint minHeapSize;
1116     jint maxHeapSize;
1117     jint verifyMode;
1118     char *classpath;
1119 
1120     jint (JNICALL *vfprintf)(FILE *fp, const char *format, va_list args);

 199 
 200 JNIEXPORT void JNICALL
 201 JVM_LogLambdaFormInvoker(JNIEnv* env, jstring line);
 202 
 203 JNIEXPORT void JNICALL
 204 JVM_DumpClassListToFile(JNIEnv* env, jstring fileName);
 205 
 206 JNIEXPORT void JNICALL
 207 JVM_DumpDynamicArchive(JNIEnv* env, jstring archiveName);
 208 
 209 /*
 210  * java.lang.Throwable
 211  */
 212 JNIEXPORT void JNICALL
 213 JVM_FillInStackTrace(JNIEnv *env, jobject throwable);
 214 
 215 /*
 216  * java.lang.StackTraceElement
 217  */
 218 JNIEXPORT void JNICALL
 219 JVM_InitStackTraceElementArray(JNIEnv *env, jobjectArray elements, jobject backtrace, jint depth);
 220 
 221 JNIEXPORT void JNICALL
 222 JVM_InitStackTraceElement(JNIEnv* env, jobject element, jobject stackFrameInfo);
 223 
 224 /*
 225  * java.lang.NullPointerException
 226  */
 227 
 228 JNIEXPORT jstring JNICALL
 229 JVM_GetExtendedNPEMessage(JNIEnv *env, jthrowable throwable);
 230 
 231 /*
 232  * java.lang.StackWalker
 233  */
 234 enum {
 235   JVM_STACKWALK_FILL_CLASS_REFS_ONLY       = 0x2,
 236   JVM_STACKWALK_GET_CALLER_CLASS           = 0x04,
 237   JVM_STACKWALK_SHOW_HIDDEN_FRAMES         = 0x20,
 238   JVM_STACKWALK_FILL_LIVE_STACK_FRAMES     = 0x100
 239 };
 240 
 241 JNIEXPORT jobject JNICALL
 242 JVM_CallStackWalk(JNIEnv *env, jobject stackStream, jlong mode,
 243                   jint skip_frames, jobject contScope, jobject cont,
 244                   jint frame_count, jint start_index, jobjectArray frames);
 245 
 246 JNIEXPORT jobject JNICALL
 247 JVM_ScopeLocalCache(JNIEnv *env, jclass threadClass);
 248 
 249 JNIEXPORT void JNICALL
 250 JVM_SetScopeLocalCache(JNIEnv *env, jclass threadClass, jobject theCache);
 251 
 252 JNIEXPORT void JNICALL
 253 JVM_SetCurrentThread(JNIEnv *env, jclass threadClass, jobject theThread);
 254 
 255 JNIEXPORT jint JNICALL
 256 JVM_MoreStackWalk(JNIEnv *env, jobject stackStream, jlong mode, jlong anchor, 
 257                   jint frame_count, jint start_index, 
 258                   jobjectArray frames);
 259 
 260 JNIEXPORT void JNICALL
 261 JVM_SetStackWalkContinuation(JNIEnv *env, jobject stackStream, jlong anchor, jobjectArray frames, jobject cont);
 262 
 263 /*
 264  * java.lang.Thread
 265  */
 266 JNIEXPORT void JNICALL
 267 JVM_StartThread(JNIEnv *env, jobject thread);
 268 
 269 JNIEXPORT void JNICALL
 270 JVM_StopThread(JNIEnv *env, jobject thread, jobject exception);
 271 
 272 JNIEXPORT jboolean JNICALL
 273 JVM_IsThreadAlive(JNIEnv *env, jobject thread);
 274 
 275 JNIEXPORT void JNICALL
 276 JVM_SuspendThread(JNIEnv *env, jobject thread);
 277 
 278 JNIEXPORT void JNICALL
 279 JVM_ResumeThread(JNIEnv *env, jobject thread);
 280 
 281 JNIEXPORT void JNICALL
 282 JVM_SetThreadPriority(JNIEnv *env, jobject thread, jint prio);
 283 
 284 JNIEXPORT void JNICALL
 285 JVM_Yield(JNIEnv *env, jclass threadClass);
 286 
 287 JNIEXPORT void JNICALL
 288 JVM_Sleep(JNIEnv *env, jclass threadClass, jlong millis);
 289 
 290 JNIEXPORT jobject JNICALL
 291 JVM_CurrentThread0(JNIEnv *env, jclass threadClass);
 292 
 293 JNIEXPORT jobject JNICALL
 294 JVM_CurrentThread(JNIEnv *env, jclass threadClass);
 295 
 296 JNIEXPORT void JNICALL
 297 JVM_Interrupt(JNIEnv *env, jobject thread);
 298 
 299 JNIEXPORT jboolean JNICALL
 300 JVM_HoldsLock(JNIEnv *env, jclass threadClass, jobject obj);
 301 
 302 JNIEXPORT jobject JNICALL
 303 JVM_GetStackTrace(JNIEnv *env, jobject thread);
 304 
 305 JNIEXPORT void JNICALL
 306 JVM_DumpAllStacks(JNIEnv *env, jclass unused);
 307 
 308 JNIEXPORT jobjectArray JNICALL
 309 JVM_GetAllThreads(JNIEnv *env, jclass dummy);
 310 
 311 JNIEXPORT void JNICALL
 312 JVM_SetNativeThreadName(JNIEnv *env, jobject jthread, jstring name);
 313 
 314 /* getStackTrace() and getAllStackTraces() method */
 315 JNIEXPORT jobjectArray JNICALL
 316 JVM_DumpThreads(JNIEnv *env, jclass threadClass, jobjectArray threads);
 317 
 318 /*
 319  * jdk.internal.vm.Continuation
 320  */
 321 JNIEXPORT void JNICALL
 322 JVM_RegisterContinuationMethods(JNIEnv *env, jclass cls);
 323 
 324 /*
 325  * java.lang.SecurityManager
 326  */
 327 JNIEXPORT jobjectArray JNICALL
 328 JVM_GetClassContext(JNIEnv *env);
 329 
 330 /*
 331  * java.lang.Package
 332  */
 333 JNIEXPORT jstring JNICALL
 334 JVM_GetSystemPackage(JNIEnv *env, jstring name);
 335 
 336 JNIEXPORT jobjectArray JNICALL
 337 JVM_GetSystemPackages(JNIEnv *env);
 338 
 339 /*
 340  * java.lang.ref.Reference
 341  */
 342 JNIEXPORT jobject JNICALL
 343 JVM_GetAndClearReferencePendingList(JNIEnv *env);

1105  */
1106 JNIEXPORT jobject JNICALL
1107 JVM_InitAgentProperties(JNIEnv *env, jobject agent_props);
1108 
1109 JNIEXPORT jstring JNICALL
1110 JVM_GetTemporaryDirectory(JNIEnv *env);
1111 
1112 /* Generics reflection support.
1113  *
1114  * Returns information about the given class's EnclosingMethod
1115  * attribute, if present, or null if the class had no enclosing
1116  * method.
1117  *
1118  * If non-null, the returned array contains three elements. Element 0
1119  * is the java.lang.Class of which the enclosing method is a member,
1120  * and elements 1 and 2 are the java.lang.Strings for the enclosing
1121  * method's name and descriptor, respectively.
1122  */
1123 JNIEXPORT jobjectArray JNICALL
1124 JVM_GetEnclosingMethodInfo(JNIEnv* env, jclass ofClass);
1125     
1126 /* Virtual thread support.
1127  */
1128 JNIEXPORT void JNICALL
1129 JVM_VirtualThreadMountBegin(JNIEnv* env, jobject vthread, jboolean first_mount);
1130 
1131 JNIEXPORT void JNICALL
1132 JVM_VirtualThreadMountEnd(JNIEnv* env, jobject vthread, jboolean first_mount);
1133 
1134 JNIEXPORT void JNICALL
1135 JVM_VirtualThreadUnmountBegin(JNIEnv* env, jobject vthread, jboolean last_unmount);
1136 
1137 JNIEXPORT void JNICALL
1138 JVM_VirtualThreadUnmountEnd(JNIEnv* env, jobject vthread, jboolean last_unmount);
1139 
1140 /*
1141  * This structure is used by the launcher to get the default thread
1142  * stack size from the VM using JNI_GetDefaultJavaVMInitArgs() with a
1143  * version of 1.1.  As it is not supported otherwise, it has been removed
1144  * from jni.h
1145  */
1146 typedef struct JDK1_1InitArgs {
1147     jint version;
1148 
1149     char **properties;
1150     jint checkSource;
1151     jint nativeStackSize;
1152     jint javaStackSize;
1153     jint minHeapSize;
1154     jint maxHeapSize;
1155     jint verifyMode;
1156     char *classpath;
1157 
1158     jint (JNICALL *vfprintf)(FILE *fp, const char *format, va_list args);
< prev index next >