8159145: Add JVMTI function GetNamedModule

Introduce function GetNamedModule with a jtreg test coverage

Reviewed-by: alanb, ctornqvi, hseigel, jiangli, dholmes, dcubed
This commit is contained in:
Serguei Spitsyn 2016-07-09 19:20:38 -07:00
parent 5296c23c9b
commit 2cede6dbc1
7 changed files with 572 additions and 7 deletions

View file

@ -121,6 +121,7 @@ public:
// IllegalArgumentException is thrown if loader is neither null nor a subtype of
// java/lang/ClassLoader.
static jobject get_module_by_package_name(jobject loader, jstring package, TRAPS);
static jobject get_named_module(Handle h_loader, const char* package, TRAPS);
// If package is defined by loader, return the
// java.lang.reflect.Module object for the module in which the package is defined.