< 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);

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














1110 
1111 /*
1112  * This structure is used by the launcher to get the default thread
1113  * stack size from the VM using JNI_GetDefaultJavaVMInitArgs() with a
1114  * version of 1.1.  As it is not supported otherwise, it has been removed
1115  * from jni.h
1116  */
1117 typedef struct JDK1_1InitArgs {
1118     jint version;
1119 
1120     char **properties;
1121     jint checkSource;
1122     jint nativeStackSize;
1123     jint javaStackSize;
1124     jint minHeapSize;
1125     jint maxHeapSize;
1126     jint verifyMode;
1127     char *classpath;
1128 
1129     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);

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