equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2012, 2017, 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. |
258 static void init_null_class_loader_data() { |
258 static void init_null_class_loader_data() { |
259 assert(_the_null_class_loader_data == NULL, "cannot initialize twice"); |
259 assert(_the_null_class_loader_data == NULL, "cannot initialize twice"); |
260 assert(ClassLoaderDataGraph::_head == NULL, "cannot initialize twice"); |
260 assert(ClassLoaderDataGraph::_head == NULL, "cannot initialize twice"); |
261 |
261 |
262 // We explicitly initialize the Dependencies object at a later phase in the initialization |
262 // We explicitly initialize the Dependencies object at a later phase in the initialization |
263 _the_null_class_loader_data = new ClassLoaderData((oop)NULL, false, Dependencies()); |
263 _the_null_class_loader_data = new ClassLoaderData(Handle(), false, Dependencies()); |
264 ClassLoaderDataGraph::_head = _the_null_class_loader_data; |
264 ClassLoaderDataGraph::_head = _the_null_class_loader_data; |
265 assert(_the_null_class_loader_data->is_the_null_class_loader_data(), "Must be"); |
265 assert(_the_null_class_loader_data->is_the_null_class_loader_data(), "Must be"); |
266 if (DumpSharedSpaces) { |
266 if (DumpSharedSpaces) { |
267 _the_null_class_loader_data->initialize_shared_metaspaces(); |
267 _the_null_class_loader_data->initialize_shared_metaspaces(); |
268 } |
268 } |