equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2019, 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. |
1722 vm_exit_during_initialization("No ModuleEntryTable for the boot class loader"); |
1722 vm_exit_during_initialization("No ModuleEntryTable for the boot class loader"); |
1723 } |
1723 } |
1724 |
1724 |
1725 { |
1725 { |
1726 MutexLocker ml(Module_lock, THREAD); |
1726 MutexLocker ml(Module_lock, THREAD); |
1727 ModuleEntry* jb_module = null_cld_modules->locked_create_entry_or_null(Handle(), |
1727 ModuleEntry* jb_module = null_cld_modules->locked_create_entry(Handle(), |
1728 false, vmSymbols::java_base(), NULL, NULL, null_cld); |
1728 false, vmSymbols::java_base(), NULL, NULL, null_cld); |
1729 if (jb_module == NULL) { |
1729 if (jb_module == NULL) { |
1730 vm_exit_during_initialization("Unable to create ModuleEntry for " JAVA_BASE_NAME); |
1730 vm_exit_during_initialization("Unable to create ModuleEntry for " JAVA_BASE_NAME); |
1731 } |
1731 } |
1732 ModuleEntryTable::set_javabase_moduleEntry(jb_module); |
1732 ModuleEntryTable::set_javabase_moduleEntry(jb_module); |