8261478: InstanceKlass::set_classpath_index does not match comments

Reviewed-by: minqi
This commit is contained in:
Calvin Cheung 2021-05-25 00:48:39 +00:00
parent de27da7ded
commit 461a3feebe

@ -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