mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 09:04:41 +02:00
8203031: segfaults from jvmti_AddToBootstrapClassLoaderSearch
Reviewed-by: sspitsyn, iklam, jiangli
This commit is contained in:
parent
5103e3b4a3
commit
4265f02657
1 changed files with 4 additions and 2 deletions
|
@ -55,8 +55,10 @@ bool ClassLoaderExt::_has_platform_classes = false;
|
||||||
|
|
||||||
void ClassLoaderExt::append_boot_classpath(ClassPathEntry* new_entry) {
|
void ClassLoaderExt::append_boot_classpath(ClassPathEntry* new_entry) {
|
||||||
#if INCLUDE_CDS
|
#if INCLUDE_CDS
|
||||||
warning("Sharing is only supported for boot loader classes because bootstrap classpath has been appended");
|
if (UseSharedSpaces) {
|
||||||
FileMapInfo::current_info()->header()->set_has_platform_or_app_classes(false);
|
warning("Sharing is only supported for boot loader classes because bootstrap classpath has been appended");
|
||||||
|
FileMapInfo::current_info()->header()->set_has_platform_or_app_classes(false);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
ClassLoader::add_to_boot_append_entries(new_entry);
|
ClassLoader::add_to_boot_append_entries(new_entry);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue