< prev index next >

src/hotspot/share/include/jvm.h

Print this page

 154 JVM_LoadZipLibrary();
 155 
 156 JNIEXPORT void * JNICALL
 157 JVM_LoadLibrary(const char *name, jboolean throwException);
 158 
 159 JNIEXPORT void JNICALL
 160 JVM_UnloadLibrary(void * handle);
 161 
 162 JNIEXPORT void * JNICALL
 163 JVM_FindLibraryEntry(void *handle, const char *name);
 164 
 165 JNIEXPORT jboolean JNICALL
 166 JVM_IsSupportedJNIVersion(jint version);
 167 
 168 JNIEXPORT jobjectArray JNICALL
 169 JVM_GetVmArguments(JNIEnv *env);
 170 
 171 JNIEXPORT jboolean JNICALL
 172 JVM_IsPreviewEnabled(void);
 173 



 174 JNIEXPORT jboolean JNICALL
 175 JVM_IsContinuationsSupported(void);
 176 
 177 JNIEXPORT jboolean JNICALL
 178 JVM_IsForeignLinkerSupported(void);
 179 
 180 JNIEXPORT void JNICALL
 181 JVM_InitializeFromArchive(JNIEnv* env, jclass cls);
 182 
 183 JNIEXPORT void JNICALL
 184 JVM_RegisterLambdaProxyClassForArchiving(JNIEnv* env, jclass caller,
 185                                          jstring interfaceMethodName,
 186                                          jobject factoryType,
 187                                          jobject interfaceMethodType,
 188                                          jobject implementationMember,
 189                                          jobject dynamicMethodType,
 190                                          jclass lambdaProxyClass);
 191 
 192 JNIEXPORT jclass JNICALL
 193 JVM_LookupLambdaProxyClassFromArchive(JNIEnv* env, jclass caller,

 405  * JVM_GetCallerClass.  The Method.invoke and other frames due to
 406  * reflection machinery are skipped.
 407  *
 408  * The caller is expected to be marked with
 409  * jdk.internal.reflect.CallerSensitive. The JVM will throw an
 410  * error if it is not marked properly.
 411  */
 412 JNIEXPORT jclass JNICALL
 413 JVM_GetCallerClass(JNIEnv *env);
 414 
 415 
 416 /*
 417  * Find primitive classes
 418  * utf: class name
 419  */
 420 JNIEXPORT jclass JNICALL
 421 JVM_FindPrimitiveClass(JNIEnv *env, const char *utf);
 422 
 423 
 424 /*
 425  * Find a class from a boot class loader. Returns NULL if class not found.
 426  */
 427 JNIEXPORT jclass JNICALL
 428 JVM_FindClassFromBootLoader(JNIEnv *env, const char *name);
 429 
 430 /*
 431  * Find a class from a given class loader.  Throws ClassNotFoundException.
 432  *  name:   name of class
 433  *  init:   whether initialization is done
 434  *  loader: class loader to look up the class. This may not be the same as the caller's
 435  *          class loader.
 436  *  caller: initiating class. The initiating class may be null when a security
 437  *          manager is not installed.
 438  */
 439 JNIEXPORT jclass JNICALL
 440 JVM_FindClassFromCaller(JNIEnv *env, const char *name, jboolean init,
 441                         jobject loader, jclass caller);
 442 
 443 /*
 444  * Find a class from a given class.
 445  */

 556 JVM_IsInterface(JNIEnv *env, jclass cls);
 557 
 558 JNIEXPORT jobjectArray JNICALL
 559 JVM_GetClassSigners(JNIEnv *env, jclass cls);
 560 
 561 JNIEXPORT void JNICALL
 562 JVM_SetClassSigners(JNIEnv *env, jclass cls, jobjectArray signers);
 563 
 564 JNIEXPORT jobject JNICALL
 565 JVM_GetProtectionDomain(JNIEnv *env, jclass cls);
 566 
 567 JNIEXPORT jboolean JNICALL
 568 JVM_IsArrayClass(JNIEnv *env, jclass cls);
 569 
 570 JNIEXPORT jboolean JNICALL
 571 JVM_IsPrimitiveClass(JNIEnv *env, jclass cls);
 572 
 573 JNIEXPORT jboolean JNICALL
 574 JVM_IsHiddenClass(JNIEnv *env, jclass cls);
 575 






 576 JNIEXPORT jint JNICALL
 577 JVM_GetClassModifiers(JNIEnv *env, jclass cls);
 578 
 579 JNIEXPORT jobjectArray JNICALL
 580 JVM_GetDeclaredClasses(JNIEnv *env, jclass ofClass);
 581 
 582 JNIEXPORT jclass JNICALL
 583 JVM_GetDeclaringClass(JNIEnv *env, jclass ofClass);
 584 
 585 JNIEXPORT jstring JNICALL
 586 JVM_GetSimpleBinaryName(JNIEnv *env, jclass ofClass);
 587 
 588 /* Generics support (JDK 1.5) */
 589 JNIEXPORT jstring JNICALL
 590 JVM_GetClassSignature(JNIEnv *env, jclass cls);
 591 
 592 /* Annotations support (JDK 1.5) */
 593 JNIEXPORT jbyteArray JNICALL
 594 JVM_GetClassAnnotations(JNIEnv *env, jclass cls);
 595 

1111 JNIEXPORT void JNICALL
1112 JVM_RawMonitorExit(void *mon);
1113 
1114 /*
1115  * java.lang.management support
1116  */
1117 JNIEXPORT void* JNICALL
1118 JVM_GetManagement(jint version);
1119 
1120 /*
1121  * com.sun.tools.attach.VirtualMachine support
1122  *
1123  * Initialize the agent properties with the properties maintained in the VM.
1124  */
1125 JNIEXPORT jobject JNICALL
1126 JVM_InitAgentProperties(JNIEnv *env, jobject agent_props);
1127 
1128 JNIEXPORT jstring JNICALL
1129 JVM_GetTemporaryDirectory(JNIEnv *env);
1130 






1131 /* Generics reflection support.
1132  *
1133  * Returns information about the given class's EnclosingMethod
1134  * attribute, if present, or null if the class had no enclosing
1135  * method.
1136  *
1137  * If non-null, the returned array contains three elements. Element 0
1138  * is the java.lang.Class of which the enclosing method is a member,
1139  * and elements 1 and 2 are the java.lang.Strings for the enclosing
1140  * method's name and descriptor, respectively.
1141  */
1142 JNIEXPORT jobjectArray JNICALL
1143 JVM_GetEnclosingMethodInfo(JNIEnv* env, jclass ofClass);
1144 
1145 /*
1146  * Virtual thread support.
1147  */
1148 JNIEXPORT void JNICALL
1149 JVM_VirtualThreadStart(JNIEnv* env, jobject vthread);
1150 

 154 JVM_LoadZipLibrary();
 155 
 156 JNIEXPORT void * JNICALL
 157 JVM_LoadLibrary(const char *name, jboolean throwException);
 158 
 159 JNIEXPORT void JNICALL
 160 JVM_UnloadLibrary(void * handle);
 161 
 162 JNIEXPORT void * JNICALL
 163 JVM_FindLibraryEntry(void *handle, const char *name);
 164 
 165 JNIEXPORT jboolean JNICALL
 166 JVM_IsSupportedJNIVersion(jint version);
 167 
 168 JNIEXPORT jobjectArray JNICALL
 169 JVM_GetVmArguments(JNIEnv *env);
 170 
 171 JNIEXPORT jboolean JNICALL
 172 JVM_IsPreviewEnabled(void);
 173 
 174 JNIEXPORT jboolean JNICALL
 175 JVM_IsValhallaEnabled(void);
 176 
 177 JNIEXPORT jboolean JNICALL
 178 JVM_IsContinuationsSupported(void);
 179 
 180 JNIEXPORT jboolean JNICALL
 181 JVM_IsForeignLinkerSupported(void);
 182 
 183 JNIEXPORT void JNICALL
 184 JVM_InitializeFromArchive(JNIEnv* env, jclass cls);
 185 
 186 JNIEXPORT void JNICALL
 187 JVM_RegisterLambdaProxyClassForArchiving(JNIEnv* env, jclass caller,
 188                                          jstring interfaceMethodName,
 189                                          jobject factoryType,
 190                                          jobject interfaceMethodType,
 191                                          jobject implementationMember,
 192                                          jobject dynamicMethodType,
 193                                          jclass lambdaProxyClass);
 194 
 195 JNIEXPORT jclass JNICALL
 196 JVM_LookupLambdaProxyClassFromArchive(JNIEnv* env, jclass caller,

 408  * JVM_GetCallerClass.  The Method.invoke and other frames due to
 409  * reflection machinery are skipped.
 410  *
 411  * The caller is expected to be marked with
 412  * jdk.internal.reflect.CallerSensitive. The JVM will throw an
 413  * error if it is not marked properly.
 414  */
 415 JNIEXPORT jclass JNICALL
 416 JVM_GetCallerClass(JNIEnv *env);
 417 
 418 
 419 /*
 420  * Find primitive classes
 421  * utf: class name
 422  */
 423 JNIEXPORT jclass JNICALL
 424 JVM_FindPrimitiveClass(JNIEnv *env, const char *utf);
 425 
 426 
 427 /*
 428  * Find a class from a boot class loader. Returns nullptr if class not found.
 429  */
 430 JNIEXPORT jclass JNICALL
 431 JVM_FindClassFromBootLoader(JNIEnv *env, const char *name);
 432 
 433 /*
 434  * Find a class from a given class loader.  Throws ClassNotFoundException.
 435  *  name:   name of class
 436  *  init:   whether initialization is done
 437  *  loader: class loader to look up the class. This may not be the same as the caller's
 438  *          class loader.
 439  *  caller: initiating class. The initiating class may be null when a security
 440  *          manager is not installed.
 441  */
 442 JNIEXPORT jclass JNICALL
 443 JVM_FindClassFromCaller(JNIEnv *env, const char *name, jboolean init,
 444                         jobject loader, jclass caller);
 445 
 446 /*
 447  * Find a class from a given class.
 448  */

 559 JVM_IsInterface(JNIEnv *env, jclass cls);
 560 
 561 JNIEXPORT jobjectArray JNICALL
 562 JVM_GetClassSigners(JNIEnv *env, jclass cls);
 563 
 564 JNIEXPORT void JNICALL
 565 JVM_SetClassSigners(JNIEnv *env, jclass cls, jobjectArray signers);
 566 
 567 JNIEXPORT jobject JNICALL
 568 JVM_GetProtectionDomain(JNIEnv *env, jclass cls);
 569 
 570 JNIEXPORT jboolean JNICALL
 571 JVM_IsArrayClass(JNIEnv *env, jclass cls);
 572 
 573 JNIEXPORT jboolean JNICALL
 574 JVM_IsPrimitiveClass(JNIEnv *env, jclass cls);
 575 
 576 JNIEXPORT jboolean JNICALL
 577 JVM_IsHiddenClass(JNIEnv *env, jclass cls);
 578 
 579 JNIEXPORT jboolean JNICALL
 580 JVM_IsIdentityClass(JNIEnv *env, jclass cls);
 581 
 582 JNIEXPORT jboolean JNICALL
 583 JVM_IsImplicitlyConstructibleClass(JNIEnv *env, jclass cls);
 584 
 585 JNIEXPORT jint JNICALL
 586 JVM_GetClassModifiers(JNIEnv *env, jclass cls);
 587 
 588 JNIEXPORT jobjectArray JNICALL
 589 JVM_GetDeclaredClasses(JNIEnv *env, jclass ofClass);
 590 
 591 JNIEXPORT jclass JNICALL
 592 JVM_GetDeclaringClass(JNIEnv *env, jclass ofClass);
 593 
 594 JNIEXPORT jstring JNICALL
 595 JVM_GetSimpleBinaryName(JNIEnv *env, jclass ofClass);
 596 
 597 /* Generics support (JDK 1.5) */
 598 JNIEXPORT jstring JNICALL
 599 JVM_GetClassSignature(JNIEnv *env, jclass cls);
 600 
 601 /* Annotations support (JDK 1.5) */
 602 JNIEXPORT jbyteArray JNICALL
 603 JVM_GetClassAnnotations(JNIEnv *env, jclass cls);
 604 

1120 JNIEXPORT void JNICALL
1121 JVM_RawMonitorExit(void *mon);
1122 
1123 /*
1124  * java.lang.management support
1125  */
1126 JNIEXPORT void* JNICALL
1127 JVM_GetManagement(jint version);
1128 
1129 /*
1130  * com.sun.tools.attach.VirtualMachine support
1131  *
1132  * Initialize the agent properties with the properties maintained in the VM.
1133  */
1134 JNIEXPORT jobject JNICALL
1135 JVM_InitAgentProperties(JNIEnv *env, jobject agent_props);
1136 
1137 JNIEXPORT jstring JNICALL
1138 JVM_GetTemporaryDirectory(JNIEnv *env);
1139 
1140 JNIEXPORT jarray JNICALL
1141 JVM_NewNullRestrictedArray(JNIEnv *env, jclass elmClass, jint len);
1142 
1143 JNIEXPORT jboolean JNICALL
1144 JVM_IsNullRestrictedArray(JNIEnv *env, jobject obj);
1145 
1146 /* Generics reflection support.
1147  *
1148  * Returns information about the given class's EnclosingMethod
1149  * attribute, if present, or null if the class had no enclosing
1150  * method.
1151  *
1152  * If non-null, the returned array contains three elements. Element 0
1153  * is the java.lang.Class of which the enclosing method is a member,
1154  * and elements 1 and 2 are the java.lang.Strings for the enclosing
1155  * method's name and descriptor, respectively.
1156  */
1157 JNIEXPORT jobjectArray JNICALL
1158 JVM_GetEnclosingMethodInfo(JNIEnv* env, jclass ofClass);
1159 
1160 /*
1161  * Virtual thread support.
1162  */
1163 JNIEXPORT void JNICALL
1164 JVM_VirtualThreadStart(JNIEnv* env, jobject vthread);
1165 
< prev index next >