< prev index next >
src/hotspot/share/classfile/modules.cpp
Print this page
@@ -457,10 +457,28 @@
// If the module is defined to the boot loader and an exploded build is being
// used, prepend <java.home>/modules/modules_name to the system boot class path.
if (h_loader.is_null() && !ClassLoader::has_jrt_entry()) {
ClassLoader::add_to_exploded_build_list(module_symbol, CHECK);
}
+
+#ifdef COMPILER2
+ // Special handling of jdk.incubator.vector
+ if (strcmp(module_name, "jdk.incubator.vector") == 0) {
+ if (FLAG_IS_DEFAULT(EnableVectorSupport)) {
+ FLAG_SET_DEFAULT(EnableVectorSupport, true);
+ }
+ if (EnableVectorSupport && FLAG_IS_DEFAULT(EnableVectorReboxing)) {
+ FLAG_SET_DEFAULT(EnableVectorReboxing, true);
+ }
+ if (EnableVectorSupport && EnableVectorReboxing && FLAG_IS_DEFAULT(EnableVectorAggressiveReboxing)) {
+ FLAG_SET_DEFAULT(EnableVectorAggressiveReboxing, true);
+ }
+ log_info(compilation)("EnableVectorSupport=%s", (EnableVectorSupport ? "true" : "false"));
+ log_info(compilation)("EnableVectorReboxing=%s", (EnableVectorReboxing ? "true" : "false"));
+ log_info(compilation)("EnableVectorAggressiveReboxing=%s", (EnableVectorAggressiveReboxing ? "true" : "false"));
+ }
+#endif // COMPILER2
}
void Modules::set_bootloader_unnamed_module(jobject module, TRAPS) {
ResourceMark rm(THREAD);
< prev index next >