8205946: JVM crash after call to ClassLoader::setup_bootstrap_search_path()

Exit vm if setting of boot class path fails.

Reviewed-by: lfoltan, jiangli, dholmes
This commit is contained in:
Calvin Cheung 2018-07-10 19:04:13 -07:00
parent 85daddd4cf
commit a10d6e71d8
7 changed files with 42 additions and 5 deletions

View file

@ -372,7 +372,9 @@ void os::init_system_properties_values() {
}
}
Arguments::set_java_home(buf);
set_boot_path('/', ':');
if (!set_boot_path('/', ':')) {
vm_exit_during_initialization("Failed setting boot class path.", NULL);
}
}
// Where to look for native libraries.