mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 09:34:38 +02:00
8158681: ClassLoader::classloader_type() is called from code not included under #if INCLUDE_CDS
Place CDS related code under #if INCLUDE_CDS. Reviewed-by: lfoltan, gtriantafill, coleenp
This commit is contained in:
parent
fecc46c774
commit
81ff3b7d93
1 changed files with 2 additions and 0 deletions
|
@ -54,12 +54,14 @@ public:
|
|||
const s2 classpath_index,
|
||||
instanceKlassHandle result, TRAPS) {
|
||||
if (ClassLoader::add_package(_file_name, classpath_index, THREAD)) {
|
||||
#if INCLUDE_CDS
|
||||
if (DumpSharedSpaces) {
|
||||
s2 classloader_type = ClassLoader::classloader_type(
|
||||
class_name, e, classpath_index, CHECK_(result));
|
||||
result->set_shared_classpath_index(classpath_index);
|
||||
result->set_class_loader_type(classloader_type);
|
||||
}
|
||||
#endif
|
||||
return result;
|
||||
} else {
|
||||
return instanceKlassHandle(); // NULL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue