Mercurial > hg > graal-jvmci-8
comparison src/share/vm/classfile/systemDictionaryShared.hpp @ 23974:f13e777eb255
Merge with jdk8u111-b14
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Wed, 16 Nov 2016 12:32:54 -0800 |
parents | 50e62b688ddc |
children |
comparison
equal
deleted
inserted
replaced
23792:3953f8820df8 | 23974:f13e777eb255 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2014, 2016, 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. |
24 | 24 |
25 | 25 |
26 #ifndef SHARE_VM_CLASSFILE_SYSTEMDICTIONARYSHARED_HPP | 26 #ifndef SHARE_VM_CLASSFILE_SYSTEMDICTIONARYSHARED_HPP |
27 #define SHARE_VM_CLASSFILE_SYSTEMDICTIONARYSHARED_HPP | 27 #define SHARE_VM_CLASSFILE_SYSTEMDICTIONARYSHARED_HPP |
28 | 28 |
29 #include "classfile/dictionary.hpp" | |
29 #include "classfile/systemDictionary.hpp" | 30 #include "classfile/systemDictionary.hpp" |
30 | 31 |
31 class SystemDictionaryShared: public SystemDictionary { | 32 class SystemDictionaryShared: public SystemDictionary { |
32 public: | 33 public: |
33 static void initialize(TRAPS) {} | 34 static void initialize(TRAPS) {} |
40 static void oops_do(OopClosure* f) {} | 41 static void oops_do(OopClosure* f) {} |
41 static bool is_sharing_possible(ClassLoaderData* loader_data) { | 42 static bool is_sharing_possible(ClassLoaderData* loader_data) { |
42 oop class_loader = loader_data->class_loader(); | 43 oop class_loader = loader_data->class_loader(); |
43 return (class_loader == NULL); | 44 return (class_loader == NULL); |
44 } | 45 } |
46 | |
47 static size_t dictionary_entry_size() { | |
48 return sizeof(DictionaryEntry); | |
49 } | |
50 static void init_shared_dictionary_entry(Klass* k, DictionaryEntry* entry) {} | |
51 | |
52 // The (non-application) CDS implementation supports only classes in the boot | |
53 // class loader, which ensures that the verification dependencies are the same | |
54 // during archive creation time and runtime. Thus we can do the dependency checks | |
55 // entirely during archive creation time. | |
56 static void add_verification_dependency(Klass* k, Symbol* accessor_clsname, | |
57 Symbol* target_clsname) {} | |
58 static void finalize_verification_dependencies() {} | |
59 static bool check_verification_dependencies(Klass* k, Handle class_loader, | |
60 Handle protection_domain, | |
61 char** message_buffer, TRAPS) {return true;} | |
45 }; | 62 }; |
46 | 63 |
47 #endif // SHARE_VM_CLASSFILE_SYSTEMDICTIONARYSHARED_HPP | 64 #endif // SHARE_VM_CLASSFILE_SYSTEMDICTIONARYSHARED_HPP |