1374 /*
1375 * Returns an array of the threadStatus values representing the
1376 * given Java thread state. Returns NULL if the VM version is
1377 * incompatible with the JDK or doesn't support the given
1378 * Java thread state.
1379 */
1380 JNIEXPORT jintArray JNICALL
1381 JVM_GetThreadStateValues(JNIEnv* env, jint javaThreadState);
1382
1383 /*
1384 * Returns an array of the substate names representing the
1385 * given Java thread state. Returns NULL if the VM version is
1386 * incompatible with the JDK or the VM doesn't support
1387 * the given Java thread state.
1388 * values must be the jintArray returned from JVM_GetThreadStateValues
1389 * and javaThreadState.
1390 */
1391 JNIEXPORT jobjectArray JNICALL
1392 JVM_GetThreadStateNames(JNIEnv* env, jint javaThreadState, jintArray values);
1393
1394 /* =========================================================================
1395 * The following defines a private JVM interface that the JDK can query
1396 * for the JVM version and capabilities. sun.misc.Version defines
1397 * the methods for getting the VM version and its capabilities.
1398 *
1399 * When a new bit is added, the following should be updated to provide
1400 * access to the new capability:
1401 * HS: JVM_GetVersionInfo and Abstract_VM_Version class
1402 * SDK: Version class
1403 *
1404 * Similary, a private JDK interface JDK_GetVersionInfo0 is defined for
1405 * JVM to query for the JDK version and capabilities.
1406 *
1407 * When a new bit is added, the following should be updated to provide
1408 * access to the new capability:
1409 * HS: JDK_Version class
1410 * SDK: JDK_GetVersionInfo0
1411 *
1412 * ==========================================================================
1413 */
|
1374 /*
1375 * Returns an array of the threadStatus values representing the
1376 * given Java thread state. Returns NULL if the VM version is
1377 * incompatible with the JDK or doesn't support the given
1378 * Java thread state.
1379 */
1380 JNIEXPORT jintArray JNICALL
1381 JVM_GetThreadStateValues(JNIEnv* env, jint javaThreadState);
1382
1383 /*
1384 * Returns an array of the substate names representing the
1385 * given Java thread state. Returns NULL if the VM version is
1386 * incompatible with the JDK or the VM doesn't support
1387 * the given Java thread state.
1388 * values must be the jintArray returned from JVM_GetThreadStateValues
1389 * and javaThreadState.
1390 */
1391 JNIEXPORT jobjectArray JNICALL
1392 JVM_GetThreadStateNames(JNIEnv* env, jint javaThreadState, jintArray values);
1393
1394 /*
1395 * Returns true if the JVM's lookup cache indicates that this class is
1396 * known to NOT exist for the given loader type. loader_type must be one
1397 * of the values defined in the enum in URLClassLoader.LoaderType.
1398 */
1399 JNIEXPORT jboolean JNICALL
1400 JVM_KnownToNotExist(JNIEnv *env, jobject loader, const char *classname);
1401
1402 /*
1403 * Returns an array of all URLs that are stored in the JVM's lookup cache
1404 * for the given loader type. NULL if the lookup cache is unavailable.
1405 */
1406 JNIEXPORT jobjectArray JNICALL
1407 JVM_GetResourceLookupCacheURLs(JNIEnv *env, jobject loader);
1408
1409 /*
1410 * Returns an array of all URLs that *may* contain the resource_name for the
1411 * given loader type. This function returns an integer array, each element
1412 * of which can be used to index into the array returned by
1413 * JVM_GetResourceLookupCacheURLs of the same loader_type to determine the
1414 * URLs.
1415 */
1416 JNIEXPORT jintArray JNICALL
1417 JVM_GetResourceLookupCache(JNIEnv *env, jobject loader, const char *resource_name);
1418
1419
1420 /* =========================================================================
1421 * The following defines a private JVM interface that the JDK can query
1422 * for the JVM version and capabilities. sun.misc.Version defines
1423 * the methods for getting the VM version and its capabilities.
1424 *
1425 * When a new bit is added, the following should be updated to provide
1426 * access to the new capability:
1427 * HS: JVM_GetVersionInfo and Abstract_VM_Version class
1428 * SDK: Version class
1429 *
1430 * Similary, a private JDK interface JDK_GetVersionInfo0 is defined for
1431 * JVM to query for the JDK version and capabilities.
1432 *
1433 * When a new bit is added, the following should be updated to provide
1434 * access to the new capability:
1435 * HS: JDK_Version class
1436 * SDK: JDK_GetVersionInfo0
1437 *
1438 * ==========================================================================
1439 */
|