hotspot/src/share/vm/classfile/classLoaderData.hpp
changeset 46271 979ebd346ecf
parent 42639 762117d57d05
child 46289 1904e7ec236e
equal deleted inserted replaced
46270:2e7898927798 46271:979ebd346ecf
     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.
   261   static void init_null_class_loader_data() {
   261   static void init_null_class_loader_data() {
   262     assert(_the_null_class_loader_data == NULL, "cannot initialize twice");
   262     assert(_the_null_class_loader_data == NULL, "cannot initialize twice");
   263     assert(ClassLoaderDataGraph::_head == NULL, "cannot initialize twice");
   263     assert(ClassLoaderDataGraph::_head == NULL, "cannot initialize twice");
   264 
   264 
   265     // We explicitly initialize the Dependencies object at a later phase in the initialization
   265     // We explicitly initialize the Dependencies object at a later phase in the initialization
   266     _the_null_class_loader_data = new ClassLoaderData((oop)NULL, false, Dependencies());
   266     _the_null_class_loader_data = new ClassLoaderData(Handle(), false, Dependencies());
   267     ClassLoaderDataGraph::_head = _the_null_class_loader_data;
   267     ClassLoaderDataGraph::_head = _the_null_class_loader_data;
   268     assert(_the_null_class_loader_data->is_the_null_class_loader_data(), "Must be");
   268     assert(_the_null_class_loader_data->is_the_null_class_loader_data(), "Must be");
   269     if (DumpSharedSpaces) {
   269     if (DumpSharedSpaces) {
   270       _the_null_class_loader_data->initialize_shared_metaspaces();
   270       _the_null_class_loader_data->initialize_shared_metaspaces();
   271     }
   271     }