hotspot/src/share/vm/classfile/systemDictionaryShared.hpp
changeset 34257 4be3504cc03b
parent 26135 82b516c550f7
child 34666 1c7168ea0034
equal deleted inserted replaced
34132:aa73af640c61 34257:4be3504cc03b
     1 /*
     1 /*
     2  * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2014, 2015, 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.
    20  * or visit www.oracle.com if you need additional information or have any
    20  * or visit www.oracle.com if you need additional information or have any
    21  * questions.
    21  * questions.
    22  *
    22  *
    23  */
    23  */
    24 
    24 
    25 
       
    26 #ifndef SHARE_VM_CLASSFILE_SYSTEMDICTIONARYSHARED_HPP
    25 #ifndef SHARE_VM_CLASSFILE_SYSTEMDICTIONARYSHARED_HPP
    27 #define SHARE_VM_CLASSFILE_SYSTEMDICTIONARYSHARED_HPP
    26 #define SHARE_VM_CLASSFILE_SYSTEMDICTIONARYSHARED_HPP
    28 
    27 
    29 #include "classfile/systemDictionary.hpp"
    28 #include "classfile/systemDictionary.hpp"
       
    29 #include "classfile/dictionary.hpp"
       
    30 
       
    31 class ClassFileStream;
    30 
    32 
    31 class SystemDictionaryShared: public SystemDictionary {
    33 class SystemDictionaryShared: public SystemDictionary {
    32 public:
    34 public:
    33   static void initialize(TRAPS) {}
    35   static void initialize(TRAPS) {}
    34   static instanceKlassHandle find_or_load_shared_class(Symbol* class_name,
    36   static instanceKlassHandle find_or_load_shared_class(Symbol* class_name,
    40   static void oops_do(OopClosure* f) {}
    42   static void oops_do(OopClosure* f) {}
    41   static bool is_sharing_possible(ClassLoaderData* loader_data) {
    43   static bool is_sharing_possible(ClassLoaderData* loader_data) {
    42     oop class_loader = loader_data->class_loader();
    44     oop class_loader = loader_data->class_loader();
    43     return (class_loader == NULL);
    45     return (class_loader == NULL);
    44   }
    46   }
       
    47 
       
    48   static Klass* dump_time_resolve_super_or_fail(Symbol* child_name,
       
    49                                                 Symbol* class_name,
       
    50                                                 Handle class_loader,
       
    51                                                 Handle protection_domain,
       
    52                                                 bool is_superclass,
       
    53                                                 TRAPS) {
       
    54     return NULL;
       
    55   }
       
    56 
       
    57   static size_t dictionary_entry_size() {
       
    58     return sizeof(DictionaryEntry);
       
    59   }
       
    60 
       
    61   static void init_shared_dictionary_entry(Klass* k, DictionaryEntry* entry) {}
       
    62 
       
    63   static InstanceKlass* lookup_from_stream(Symbol* class_name,
       
    64                                            Handle class_loader,
       
    65                                            Handle protection_domain,
       
    66                                            ClassFileStream* st,
       
    67                                            bool verify,
       
    68                                            TRAPS) {
       
    69     return NULL;
       
    70   }
    45 };
    71 };
    46 
    72 
    47 #endif // SHARE_VM_CLASSFILE_SYSTEMDICTIONARYSHARED_HPP
    73 #endif // SHARE_VM_CLASSFILE_SYSTEMDICTIONARYSHARED_HPP