Skip to content

Commit c26e1d0

Browse files
Matias Saavedra Silvacoleenp
authored andcommitted
8303495: Unused path parameter in ClassLoader::add_to_app_classpath_entries(JavaThread* current, char* path, ...)
Reviewed-by: ccheung, dholmes
1 parent 548d552 commit c26e1d0

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/hotspot/share/classfile/classLoader.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,6 @@ void ClassLoader::add_to_boot_append_entries(ClassPathEntry *new_entry) {
802802
// loading app classes. Instead, the app class are loaded by the
803803
// jdk/internal/loader/ClassLoaders$AppClassLoader instance.
804804
void ClassLoader::add_to_app_classpath_entries(JavaThread* current,
805-
const char* path,
806805
ClassPathEntry* entry,
807806
bool check_for_duplicates) {
808807
#if INCLUDE_CDS
@@ -853,7 +852,7 @@ bool ClassLoader::update_class_path_entry_list(JavaThread* current,
853852
if (is_boot_append) {
854853
add_to_boot_append_entries(new_entry);
855854
} else {
856-
add_to_app_classpath_entries(current, path, new_entry, check_for_duplicates);
855+
add_to_app_classpath_entries(current, new_entry, check_for_duplicates);
857856
}
858857
return true;
859858
} else {

src/hotspot/share/classfile/classLoader.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ class ClassLoader: AllStatic {
223223
CDS_ONLY(static void setup_app_search_path(JavaThread* current, const char* class_path);)
224224
CDS_ONLY(static void setup_module_search_path(JavaThread* current, const char* path);)
225225
static void add_to_app_classpath_entries(JavaThread* current,
226-
const char* path,
227226
ClassPathEntry* entry,
228227
bool check_for_duplicates);
229228
CDS_ONLY(static void add_to_module_path_entries(const char* path,

0 commit comments

Comments
 (0)