hotspot/src/share/vm/classfile/classLoader.cpp
changeset 46271 979ebd346ecf
parent 42876 ff8ff9dcccec
child 46289 1904e7ec236e
equal deleted inserted replaced
46270:2e7898927798 46271:979ebd346ecf
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 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.
  1713     vm_exit_during_initialization("No ModuleEntryTable for the boot class loader");
  1713     vm_exit_during_initialization("No ModuleEntryTable for the boot class loader");
  1714   }
  1714   }
  1715 
  1715 
  1716   {
  1716   {
  1717     MutexLocker ml(Module_lock, THREAD);
  1717     MutexLocker ml(Module_lock, THREAD);
  1718     ModuleEntry* jb_module = null_cld_modules->locked_create_entry_or_null(Handle(NULL), vmSymbols::java_base(), NULL, NULL, null_cld);
  1718     ModuleEntry* jb_module = null_cld_modules->locked_create_entry_or_null(Handle(), vmSymbols::java_base(), NULL, NULL, null_cld);
  1719     if (jb_module == NULL) {
  1719     if (jb_module == NULL) {
  1720       vm_exit_during_initialization("Unable to create ModuleEntry for " JAVA_BASE_NAME);
  1720       vm_exit_during_initialization("Unable to create ModuleEntry for " JAVA_BASE_NAME);
  1721     }
  1721     }
  1722     ModuleEntryTable::set_javabase_moduleEntry(jb_module);
  1722     ModuleEntryTable::set_javabase_moduleEntry(jb_module);
  1723   }
  1723   }