6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "classfile/classLoaderData.hpp"
27 #include "classfile/javaClasses.hpp"
28 #include "classfile/moduleEntry.hpp"
29 #include "logging/log.hpp"
30 #include "memory/resourceArea.hpp"
31 #include "oops/symbol.hpp"
32 #include "prims/jni.h"
33 #include "runtime/handles.inline.hpp"
34 #include "runtime/safepoint.hpp"
35 #include "trace/traceMacros.hpp"
36 #include "utilities/events.hpp"
37 #include "utilities/growableArray.hpp"
38 #include "utilities/hashtable.inline.hpp"
39 #include "utilities/ostream.hpp"
40
41 ModuleEntry* ModuleEntryTable::_javabase_module = NULL;
42
43 void ModuleEntry::set_location(Symbol* location) {
44 if (_location != NULL) {
45 // _location symbol's refcounts are managed by ModuleEntry,
46 // must decrement the old one before updating.
47 _location->decrement_refcount();
48 }
49
50 _location = location;
51
52 if (location != NULL) {
|
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "jni.h"
27 #include "classfile/classLoaderData.hpp"
28 #include "classfile/javaClasses.hpp"
29 #include "classfile/moduleEntry.hpp"
30 #include "logging/log.hpp"
31 #include "memory/resourceArea.hpp"
32 #include "oops/symbol.hpp"
33 #include "runtime/handles.inline.hpp"
34 #include "runtime/safepoint.hpp"
35 #include "trace/traceMacros.hpp"
36 #include "utilities/events.hpp"
37 #include "utilities/growableArray.hpp"
38 #include "utilities/hashtable.inline.hpp"
39 #include "utilities/ostream.hpp"
40
41 ModuleEntry* ModuleEntryTable::_javabase_module = NULL;
42
43 void ModuleEntry::set_location(Symbol* location) {
44 if (_location != NULL) {
45 // _location symbol's refcounts are managed by ModuleEntry,
46 // must decrement the old one before updating.
47 _location->decrement_refcount();
48 }
49
50 _location = location;
51
52 if (location != NULL) {
|