src/hotspot/share/classfile/systemDictionaryShared.hpp
changeset 49824 e242740a92b8
parent 48138 78b2ecdd3c4b
child 50152 b5023063346d
equal deleted inserted replaced
49823:af4b57a556be 49824:e242740a92b8
     1 /*
     1 /*
     2  * Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   298   static void roots_oops_do(OopClosure* f) {
   298   static void roots_oops_do(OopClosure* f) {
   299     oops_do(f);
   299     oops_do(f);
   300   }
   300   }
   301 
   301 
   302   // Check if sharing is supported for the class loader.
   302   // Check if sharing is supported for the class loader.
   303   static bool is_sharing_possible(ClassLoaderData* loader_data) {
   303   static bool is_sharing_possible(ClassLoaderData* loader_data);
   304     oop class_loader = loader_data->class_loader();
       
   305     return (class_loader == NULL ||
       
   306             (UseAppCDS && (SystemDictionary::is_system_class_loader(class_loader) ||
       
   307                            SystemDictionary::is_platform_class_loader(class_loader)))
       
   308             );
       
   309   }
       
   310   static bool is_shared_class_visible_for_classloader(InstanceKlass* ik,
   304   static bool is_shared_class_visible_for_classloader(InstanceKlass* ik,
   311                                                       Handle class_loader,
   305                                                       Handle class_loader,
   312                                                       const char* pkg_string,
   306                                                       const char* pkg_string,
   313                                                       Symbol* pkg_name,
   307                                                       Symbol* pkg_name,
   314                                                       PackageEntry* pkg_entry,
   308                                                       PackageEntry* pkg_entry,