Skip to content
Permalink
Browse files
8261478: InstanceKlass::set_classpath_index does not match comments
Reviewed-by: minqi
  • Loading branch information
calvinccheung committed May 25, 2021
1 parent de27da7 commit 461a3feebedccbf83bf3871d65ed7f2d1ad79307
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/hotspot/share/oops/instanceKlass.cpp
@@ -2851,9 +2851,9 @@ void InstanceKlass::set_package(ClassLoaderData* loader_data, PackageEntry* pkg_
}
}

// Function set_classpath_index checks if the package of the InstanceKlass is in the
// boot loader's package entry table. If so, then it sets the classpath_index
// in the package entry record.
// Function set_classpath_index ensures that for a non-null _package_entry
// of the InstanceKlass, the entry is in the boot loader's package entry table.
// It then sets the classpath_index in the package entry record.
//
// The classpath_index field is used to find the entry on the boot loader class
// path for packages with classes loaded by the boot loader from -Xbootclasspath/a

1 comment on commit 461a3fe

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 461a3fe May 25, 2021

Please sign in to comment.