Skip to content

Commit 556377a

Browse files
Man Caojcking
Man Cao
andcommitted
8296270: Memory leak in ClassLoader::setup_bootstrap_search_path_impl
Co-authored-by: Justin King <jcking@google.com> Reviewed-by: dholmes, jiangli
1 parent c2f7638 commit 556377a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Diff for: src/hotspot/share/classfile/classLoader.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -649,10 +649,7 @@ void ClassLoader::setup_bootstrap_search_path_impl(JavaThread* current, const ch
649649
_jrt_entry = new ClassPathImageEntry(JImage_file, canonical_path);
650650
assert(_jrt_entry != NULL && _jrt_entry->is_modules_image(), "No java runtime image present");
651651
assert(_jrt_entry->jimage() != NULL, "No java runtime image");
652-
} else {
653-
// It's an exploded build.
654-
ClassPathEntry* new_entry = create_class_path_entry(current, path, &st, false, false);
655-
}
652+
} // else it's an exploded build.
656653
} else {
657654
// If path does not exist, exit
658655
vm_exit_during_initialization("Unable to establish the boot loader search path", path);

0 commit comments

Comments
 (0)