mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8191374: Improve error message when CDS is not supported on exploded build
Reviewed-by: jiangli, hseigel
This commit is contained in:
parent
c7421b5e3b
commit
1c4fcc1627
1 changed files with 8 additions and 0 deletions
|
@ -802,6 +802,14 @@ void ClassLoader::setup_boot_search_path(const char *class_path) {
|
|||
int end = 0;
|
||||
bool set_base_piece = true;
|
||||
|
||||
#if INCLUDE_CDS
|
||||
if (DumpSharedSpaces || UseSharedSpaces) {
|
||||
if (!Arguments::has_jimage()) {
|
||||
vm_exit_during_initialization("CDS is not supported in exploded JDK build", NULL);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// Iterate over class path entries
|
||||
for (int start = 0; start < len; start = end) {
|
||||
while (class_path[end] && class_path[end] != os::path_separator()[0]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue