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

@ -549,6 +549,7 @@ void ClassLoader::trace_class_path(const char* msg, const char* name) {
void ClassLoader::setup_bootstrap_search_path() {
const char* sys_class_path = Arguments::get_sysclasspath();
assert(sys_class_path != NULL, "System boot class path must not be NULL");
if (PrintSharedArchiveAndExit) {
// Don't print sys_class_path - this is the bootcp of this current VM process, not necessarily
// the same as the bootcp of the shared archive.