equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2016, 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. |
101 // classes from the Module loaded by the same ClassLoader. |
101 // classes from the Module loaded by the same ClassLoader. |
102 oop shared_protection_domain(); |
102 oop shared_protection_domain(); |
103 void set_shared_protection_domain(ClassLoaderData *loader_data, Handle pd); |
103 void set_shared_protection_domain(ClassLoaderData *loader_data, Handle pd); |
104 |
104 |
105 ClassLoaderData* loader_data() const { return _loader_data; } |
105 ClassLoaderData* loader_data() const { return _loader_data; } |
106 void set_loader_data(ClassLoaderData* l) { _loader_data = l; } |
106 |
|
107 void set_loader_data(ClassLoaderData* cld) { |
|
108 assert(!cld->is_anonymous(), "Unexpected anonymous class loader data"); |
|
109 _loader_data = cld; |
|
110 } |
107 |
111 |
108 Symbol* version() const { return _version; } |
112 Symbol* version() const { return _version; } |
109 void set_version(Symbol* version); |
113 void set_version(Symbol* version); |
110 |
114 |
111 Symbol* location() const { return _location; } |
115 Symbol* location() const { return _location; } |