< prev index next >

src/hotspot/share/include/jvm.h

Print this page
rev 58870 : 8242452: During module definition, move conversion of packages from native to VM
8242290: Pointless verification in get_package_entry_by_name
Reviewed-by: lfoltan, alanb, iklam


 382 JVM_DefineClass(JNIEnv *env, const char *name, jobject loader, const jbyte *buf,
 383                 jsize len, jobject pd);
 384 
 385 /* Define a class with a source (added in JDK1.5) */
 386 JNIEXPORT jclass JNICALL
 387 JVM_DefineClassWithSource(JNIEnv *env, const char *name, jobject loader,
 388                           const jbyte *buf, jsize len, jobject pd,
 389                           const char *source);
 390 
 391 /*
 392  * Module support funcions
 393  */
 394 
 395 /*
 396  * Define a module with the specified packages and bind the module to the
 397  * given class loader.
 398  *  module:       module to define
 399  *  is_open:      specifies if module is open (currently ignored)
 400  *  version:      the module version
 401  *  location:     the module location
 402  *  packages:     list of packages in the module
 403  *  num_packages: number of packages in the module
 404  */
 405 JNIEXPORT void JNICALL
 406 JVM_DefineModule(JNIEnv *env, jobject module, jboolean is_open, jstring version,
 407                  jstring location, const char* const* packages, jsize num_packages);
 408 
 409 /*
 410  * Set the boot loader's unnamed module.
 411  *  module: boot loader's unnamed module
 412  */
 413 JNIEXPORT void JNICALL
 414 JVM_SetBootLoaderUnnamedModule(JNIEnv *env, jobject module);
 415 
 416 /*
 417  * Do a qualified export of a package.
 418  *  from_module: module containing the package to export
 419  *  package:     name of the package to export
 420  *  to_module:   module to export the package to
 421  */
 422 JNIEXPORT void JNICALL
 423 JVM_AddModuleExports(JNIEnv *env, jobject from_module, const char* package, jobject to_module);
 424 
 425 /*
 426  * Do an export of a package to all unnamed modules.
 427  *  from_module: module containing the package to export
 428  *  package:     name of the package to export to all unnamed modules
 429  */
 430 JNIEXPORT void JNICALL
 431 JVM_AddModuleExportsToAllUnnamed(JNIEnv *env, jobject from_module, const char* package);
 432 
 433 /*
 434  * Do an unqualified export of a package.
 435  *  from_module: module containing the package to export
 436  *  package:     name of the package to export
 437  */
 438 JNIEXPORT void JNICALL
 439 JVM_AddModuleExportsToAll(JNIEnv *env, jobject from_module, const char* package);
 440 
 441 /*
 442  * Add a module to the list of modules that a given module can read.
 443  *  from_module:   module requesting read access
 444  *  source_module: module that from_module wants to read
 445  */
 446 JNIEXPORT void JNICALL
 447 JVM_AddReadsModule(JNIEnv *env, jobject from_module, jobject source_module);
 448 
 449 /*
 450  * Reflection support functions
 451  */
 452 
 453 JNIEXPORT jstring JNICALL
 454 JVM_InitClassName(JNIEnv *env, jclass cls);
 455 
 456 JNIEXPORT jobjectArray JNICALL
 457 JVM_GetClassInterfaces(JNIEnv *env, jclass cls);
 458 
 459 JNIEXPORT jboolean JNICALL




 382 JVM_DefineClass(JNIEnv *env, const char *name, jobject loader, const jbyte *buf,
 383                 jsize len, jobject pd);
 384 
 385 /* Define a class with a source (added in JDK1.5) */
 386 JNIEXPORT jclass JNICALL
 387 JVM_DefineClassWithSource(JNIEnv *env, const char *name, jobject loader,
 388                           const jbyte *buf, jsize len, jobject pd,
 389                           const char *source);
 390 
 391 /*
 392  * Module support funcions
 393  */
 394 
 395 /*
 396  * Define a module with the specified packages and bind the module to the
 397  * given class loader.
 398  *  module:       module to define
 399  *  is_open:      specifies if module is open (currently ignored)
 400  *  version:      the module version
 401  *  location:     the module location
 402  *  packages:     array of packages in the module

 403  */
 404 JNIEXPORT void JNICALL
 405 JVM_DefineModule(JNIEnv *env, jobject module, jboolean is_open, jstring version,
 406                  jstring location, jobjectArray packages);
 407 
 408 /*
 409  * Set the boot loader's unnamed module.
 410  *  module: boot loader's unnamed module
 411  */
 412 JNIEXPORT void JNICALL
 413 JVM_SetBootLoaderUnnamedModule(JNIEnv *env, jobject module);
 414 
 415 /*
 416  * Do a qualified export of a package.
 417  *  from_module: module containing the package to export
 418  *  package:     name of the package to export
 419  *  to_module:   module to export the package to
 420  */
 421 JNIEXPORT void JNICALL
 422 JVM_AddModuleExports(JNIEnv *env, jobject from_module, jstring package, jobject to_module);
 423 
 424 /*
 425  * Do an export of a package to all unnamed modules.
 426  *  from_module: module containing the package to export
 427  *  package:     name of the package to export to all unnamed modules
 428  */
 429 JNIEXPORT void JNICALL
 430 JVM_AddModuleExportsToAllUnnamed(JNIEnv *env, jobject from_module, jstring package);
 431 
 432 /*
 433  * Do an unqualified export of a package.
 434  *  from_module: module containing the package to export
 435  *  package:     name of the package to export
 436  */
 437 JNIEXPORT void JNICALL
 438 JVM_AddModuleExportsToAll(JNIEnv *env, jobject from_module, jstring package);
 439 
 440 /*
 441  * Add a module to the list of modules that a given module can read.
 442  *  from_module:   module requesting read access
 443  *  source_module: module that from_module wants to read
 444  */
 445 JNIEXPORT void JNICALL
 446 JVM_AddReadsModule(JNIEnv *env, jobject from_module, jobject source_module);
 447 
 448 /*
 449  * Reflection support functions
 450  */
 451 
 452 JNIEXPORT jstring JNICALL
 453 JVM_InitClassName(JNIEnv *env, jclass cls);
 454 
 455 JNIEXPORT jobjectArray JNICALL
 456 JVM_GetClassInterfaces(JNIEnv *env, jclass cls);
 457 
 458 JNIEXPORT jboolean JNICALL


< prev index next >