< prev index next >

src/hotspot/share/include/jvm.h

Print this page




 163 
 164 JNIEXPORT void JNICALL
 165 JVM_UnloadLibrary(void * handle);
 166 
 167 JNIEXPORT void * JNICALL
 168 JVM_FindLibraryEntry(void *handle, const char *name);
 169 
 170 JNIEXPORT jboolean JNICALL
 171 JVM_IsSupportedJNIVersion(jint version);
 172 
 173 JNIEXPORT jobjectArray JNICALL
 174 JVM_GetVmArguments(JNIEnv *env);
 175 
 176 JNIEXPORT void JNICALL
 177 JVM_InitializeFromArchive(JNIEnv* env, jclass cls);
 178 
 179 /*
 180  * java.lang.Throwable
 181  */
 182 JNIEXPORT void JNICALL
 183 JVM_FillInStackTrace(JNIEnv *env, jobject throwable);
 184 
 185 /*
 186  * java.lang.StackTraceElement
 187  */
 188 JNIEXPORT void JNICALL
 189 JVM_InitStackTraceElementArray(JNIEnv *env, jobjectArray elements, jobject throwable);
 190 
 191 JNIEXPORT void JNICALL
 192 JVM_InitStackTraceElement(JNIEnv* env, jobject element, jobject stackFrameInfo);
 193 
 194 /*
 195  * java.lang.StackWalker
 196  */
 197 enum {
 198   JVM_STACKWALK_FILL_CLASS_REFS_ONLY       = 0x2,
 199   JVM_STACKWALK_GET_CALLER_CLASS           = 0x04,
 200   JVM_STACKWALK_SHOW_HIDDEN_FRAMES         = 0x20,
 201   JVM_STACKWALK_FILL_LIVE_STACK_FRAMES     = 0x100
 202 };
 203 
 204 JNIEXPORT jobject JNICALL
 205 JVM_CallStackWalk(JNIEnv *env, jobject stackStream, jlong mode,
 206                   jint skip_frames, jint frame_count, jint start_index,
 207                   jobjectArray frames);
 208 
 209 JNIEXPORT jint JNICALL
 210 JVM_MoreStackWalk(JNIEnv *env, jobject stackStream, jlong mode, jlong anchor,
 211                   jint frame_count, jint start_index,
 212                   jobjectArray frames);
 213 



 214 /*
 215  * java.lang.Thread
 216  */
 217 JNIEXPORT void JNICALL
 218 JVM_StartThread(JNIEnv *env, jobject thread);
 219 
 220 JNIEXPORT void JNICALL
 221 JVM_StopThread(JNIEnv *env, jobject thread, jobject exception);
 222 
 223 JNIEXPORT jboolean JNICALL
 224 JVM_IsThreadAlive(JNIEnv *env, jobject thread);
 225 
 226 JNIEXPORT void JNICALL
 227 JVM_SuspendThread(JNIEnv *env, jobject thread);
 228 
 229 JNIEXPORT void JNICALL
 230 JVM_ResumeThread(JNIEnv *env, jobject thread);
 231 
 232 JNIEXPORT void JNICALL
 233 JVM_SetThreadPriority(JNIEnv *env, jobject thread, jint prio);


 250 JNIEXPORT jboolean JNICALL
 251 JVM_IsInterrupted(JNIEnv *env, jobject thread, jboolean clearInterrupted);
 252 
 253 JNIEXPORT jboolean JNICALL
 254 JVM_HoldsLock(JNIEnv *env, jclass threadClass, jobject obj);
 255 
 256 JNIEXPORT void JNICALL
 257 JVM_DumpAllStacks(JNIEnv *env, jclass unused);
 258 
 259 JNIEXPORT jobjectArray JNICALL
 260 JVM_GetAllThreads(JNIEnv *env, jclass dummy);
 261 
 262 JNIEXPORT void JNICALL
 263 JVM_SetNativeThreadName(JNIEnv *env, jobject jthread, jstring name);
 264 
 265 /* getStackTrace() and getAllStackTraces() method */
 266 JNIEXPORT jobjectArray JNICALL
 267 JVM_DumpThreads(JNIEnv *env, jclass threadClass, jobjectArray threads);
 268 
 269 /*






 270  * java.lang.SecurityManager
 271  */
 272 JNIEXPORT jobjectArray JNICALL
 273 JVM_GetClassContext(JNIEnv *env);
 274 
 275 /*
 276  * java.lang.Package
 277  */
 278 JNIEXPORT jstring JNICALL
 279 JVM_GetSystemPackage(JNIEnv *env, jstring name);
 280 
 281 JNIEXPORT jobjectArray JNICALL
 282 JVM_GetSystemPackages(JNIEnv *env);
 283 
 284 /*
 285  * java.lang.ref.Reference
 286  */
 287 JNIEXPORT jobject JNICALL
 288 JVM_GetAndClearReferencePendingList(JNIEnv *env);
 289 


1208  */
1209 JNIEXPORT jobject JNICALL
1210 JVM_InitAgentProperties(JNIEnv *env, jobject agent_props);
1211 
1212 JNIEXPORT jstring JNICALL
1213 JVM_GetTemporaryDirectory(JNIEnv *env);
1214 
1215 /* Generics reflection support.
1216  *
1217  * Returns information about the given class's EnclosingMethod
1218  * attribute, if present, or null if the class had no enclosing
1219  * method.
1220  *
1221  * If non-null, the returned array contains three elements. Element 0
1222  * is the java.lang.Class of which the enclosing method is a member,
1223  * and elements 1 and 2 are the java.lang.Strings for the enclosing
1224  * method's name and descriptor, respectively.
1225  */
1226 JNIEXPORT jobjectArray JNICALL
1227 JVM_GetEnclosingMethodInfo(JNIEnv* env, jclass ofClass);















1228 
1229 /* =========================================================================
1230  * The following defines a private JVM interface that the JDK can query
1231  * for the JVM version and capabilities.  sun.misc.Version defines
1232  * the methods for getting the VM version and its capabilities.
1233  *
1234  * When a new bit is added, the following should be updated to provide
1235  * access to the new capability:
1236  *    HS:   JVM_GetVersionInfo and Abstract_VM_Version class
1237  *    SDK:  Version class
1238  *
1239  * Similary, a private JDK interface JDK_GetVersionInfo0 is defined for
1240  * JVM to query for the JDK version and capabilities.
1241  *
1242  * When a new bit is added, the following should be updated to provide
1243  * access to the new capability:
1244  *    HS:   JDK_Version class
1245  *    SDK:  JDK_GetVersionInfo0
1246  *
1247  * ==========================================================================




 163 
 164 JNIEXPORT void JNICALL
 165 JVM_UnloadLibrary(void * handle);
 166 
 167 JNIEXPORT void * JNICALL
 168 JVM_FindLibraryEntry(void *handle, const char *name);
 169 
 170 JNIEXPORT jboolean JNICALL
 171 JVM_IsSupportedJNIVersion(jint version);
 172 
 173 JNIEXPORT jobjectArray JNICALL
 174 JVM_GetVmArguments(JNIEnv *env);
 175 
 176 JNIEXPORT void JNICALL
 177 JVM_InitializeFromArchive(JNIEnv* env, jclass cls);
 178 
 179 /*
 180  * java.lang.Throwable
 181  */
 182 JNIEXPORT void JNICALL
 183 JVM_FillInStackTrace(JNIEnv *env, jobject throwable, jobject contScope);
 184 
 185 /*
 186  * java.lang.StackTraceElement
 187  */
 188 JNIEXPORT void JNICALL
 189 JVM_InitStackTraceElementArray(JNIEnv *env, jobjectArray elements, jobject throwable);
 190 
 191 JNIEXPORT void JNICALL
 192 JVM_InitStackTraceElement(JNIEnv* env, jobject element, jobject stackFrameInfo);
 193 
 194 /*
 195  * java.lang.StackWalker
 196  */
 197 enum {
 198   JVM_STACKWALK_FILL_CLASS_REFS_ONLY       = 0x2,
 199   JVM_STACKWALK_GET_CALLER_CLASS           = 0x04,
 200   JVM_STACKWALK_SHOW_HIDDEN_FRAMES         = 0x20,
 201   JVM_STACKWALK_FILL_LIVE_STACK_FRAMES     = 0x100
 202 };
 203 
 204 JNIEXPORT jobject JNICALL
 205 JVM_CallStackWalk(JNIEnv *env, jobject stackStream, jlong mode,
 206                   jint skip_frames, jobject contScope, jobject cont,
 207                   jint frame_count, jint start_index, jobjectArray frames);
 208 
 209 JNIEXPORT jint JNICALL
 210 JVM_MoreStackWalk(JNIEnv *env, jobject stackStream, jlong mode, jlong anchor, 
 211                   jint frame_count, jint start_index, 
 212                   jobjectArray frames);
 213 
 214 JNIEXPORT void JNICALL
 215 JVM_SetStackWalkContinuation(JNIEnv *env, jobject stackStream, jlong anchor, jobjectArray frames, jobject cont);
 216 
 217 /*
 218  * java.lang.Thread
 219  */
 220 JNIEXPORT void JNICALL
 221 JVM_StartThread(JNIEnv *env, jobject thread);
 222 
 223 JNIEXPORT void JNICALL
 224 JVM_StopThread(JNIEnv *env, jobject thread, jobject exception);
 225 
 226 JNIEXPORT jboolean JNICALL
 227 JVM_IsThreadAlive(JNIEnv *env, jobject thread);
 228 
 229 JNIEXPORT void JNICALL
 230 JVM_SuspendThread(JNIEnv *env, jobject thread);
 231 
 232 JNIEXPORT void JNICALL
 233 JVM_ResumeThread(JNIEnv *env, jobject thread);
 234 
 235 JNIEXPORT void JNICALL
 236 JVM_SetThreadPriority(JNIEnv *env, jobject thread, jint prio);


 253 JNIEXPORT jboolean JNICALL
 254 JVM_IsInterrupted(JNIEnv *env, jobject thread, jboolean clearInterrupted);
 255 
 256 JNIEXPORT jboolean JNICALL
 257 JVM_HoldsLock(JNIEnv *env, jclass threadClass, jobject obj);
 258 
 259 JNIEXPORT void JNICALL
 260 JVM_DumpAllStacks(JNIEnv *env, jclass unused);
 261 
 262 JNIEXPORT jobjectArray JNICALL
 263 JVM_GetAllThreads(JNIEnv *env, jclass dummy);
 264 
 265 JNIEXPORT void JNICALL
 266 JVM_SetNativeThreadName(JNIEnv *env, jobject jthread, jstring name);
 267 
 268 /* getStackTrace() and getAllStackTraces() method */
 269 JNIEXPORT jobjectArray JNICALL
 270 JVM_DumpThreads(JNIEnv *env, jclass threadClass, jobjectArray threads);
 271 
 272 /*
 273  * java.lang.Continuation
 274  */
 275 JNIEXPORT void JNICALL
 276 JVM_RegisterContinuationMethods(JNIEnv *env, jclass cls);
 277 
 278 /*
 279  * java.lang.SecurityManager
 280  */
 281 JNIEXPORT jobjectArray JNICALL
 282 JVM_GetClassContext(JNIEnv *env);
 283 
 284 /*
 285  * java.lang.Package
 286  */
 287 JNIEXPORT jstring JNICALL
 288 JVM_GetSystemPackage(JNIEnv *env, jstring name);
 289 
 290 JNIEXPORT jobjectArray JNICALL
 291 JVM_GetSystemPackages(JNIEnv *env);
 292 
 293 /*
 294  * java.lang.ref.Reference
 295  */
 296 JNIEXPORT jobject JNICALL
 297 JVM_GetAndClearReferencePendingList(JNIEnv *env);
 298 


1217  */
1218 JNIEXPORT jobject JNICALL
1219 JVM_InitAgentProperties(JNIEnv *env, jobject agent_props);
1220 
1221 JNIEXPORT jstring JNICALL
1222 JVM_GetTemporaryDirectory(JNIEnv *env);
1223 
1224 /* Generics reflection support.
1225  *
1226  * Returns information about the given class's EnclosingMethod
1227  * attribute, if present, or null if the class had no enclosing
1228  * method.
1229  *
1230  * If non-null, the returned array contains three elements. Element 0
1231  * is the java.lang.Class of which the enclosing method is a member,
1232  * and elements 1 and 2 are the java.lang.Strings for the enclosing
1233  * method's name and descriptor, respectively.
1234  */
1235 JNIEXPORT jobjectArray JNICALL
1236 JVM_GetEnclosingMethodInfo(JNIEnv* env, jclass ofClass);
1237 
1238 /* Fiber support.
1239  */
1240 JNIEXPORT void JNICALL
1241 JVM_FiberStarted(JNIEnv* env, jclass fiber_class, jobject event_thread, jobject fiber);
1242 
1243 JNIEXPORT void JNICALL
1244 JVM_FiberTerminated(JNIEnv* env, jclass fiber_class, jobject event_hread, jobject fiber);
1245 
1246 JNIEXPORT void JNICALL
1247 JVM_FiberMount(JNIEnv* env, jclass fiber_class, jobject event_thread, jobject fiber);
1248 
1249 JNIEXPORT void JNICALL
1250 JVM_FiberUnmount(JNIEnv* env, jclass fiber_class, jobject event_hread, jobject fiber);
1251 
1252 
1253 /* =========================================================================
1254  * The following defines a private JVM interface that the JDK can query
1255  * for the JVM version and capabilities.  sun.misc.Version defines
1256  * the methods for getting the VM version and its capabilities.
1257  *
1258  * When a new bit is added, the following should be updated to provide
1259  * access to the new capability:
1260  *    HS:   JVM_GetVersionInfo and Abstract_VM_Version class
1261  *    SDK:  Version class
1262  *
1263  * Similary, a private JDK interface JDK_GetVersionInfo0 is defined for
1264  * JVM to query for the JDK version and capabilities.
1265  *
1266  * When a new bit is added, the following should be updated to provide
1267  * access to the new capability:
1268  *    HS:   JDK_Version class
1269  *    SDK:  JDK_GetVersionInfo0
1270  *
1271  * ==========================================================================


< prev index next >