Skip to content

Commit

Permalink
8296270: Memory leak in ClassLoader::setup_bootstrap_search_path_impl
Browse files Browse the repository at this point in the history
Co-authored-by: Justin King <jcking@google.com>
Reviewed-by: dholmes, jiangli
  • Loading branch information
Man Cao and jcking committed Nov 7, 2022
1 parent c2f7638 commit 556377a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/hotspot/share/classfile/classLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -649,10 +649,7 @@ void ClassLoader::setup_bootstrap_search_path_impl(JavaThread* current, const ch
_jrt_entry = new ClassPathImageEntry(JImage_file, canonical_path);
assert(_jrt_entry != NULL && _jrt_entry->is_modules_image(), "No java runtime image present");
assert(_jrt_entry->jimage() != NULL, "No java runtime image");
} else {
// It's an exploded build.
ClassPathEntry* new_entry = create_class_path_entry(current, path, &st, false, false);
}
} // else it's an exploded build.
} else {
// If path does not exist, exit
vm_exit_during_initialization("Unable to establish the boot loader search path", path);
Expand Down

1 comment on commit 556377a

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.