23 lines
860 B
Diff
23 lines
860 B
Diff
Subject: Backport JDK-8304484 CDS dynamic dumping incorrectly leads to "Error occurred during initialization of VM"
|
|
|
|
---
|
|
src/hotspot/share/classfile/classLoader.cpp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/hotspot/share/classfile/classLoader.cpp b/src/hotspot/share/classfile/classLoader.cpp
|
|
index 5e89673a5..e4a14d560 100644
|
|
--- a/src/hotspot/share/classfile/classLoader.cpp
|
|
+++ b/src/hotspot/share/classfile/classLoader.cpp
|
|
@@ -445,7 +445,7 @@ bool ClassPathImageEntry::is_modules_image() const {
|
|
void ClassLoader::exit_with_path_failure(const char* error, const char* message) {
|
|
Arguments::assert_is_dumping_archive();
|
|
tty->print_cr("Hint: enable -Xlog:class+path=info to diagnose the failure");
|
|
- vm_exit_during_initialization(error, message);
|
|
+ vm_exit_during_cds_dumping(error, message);
|
|
}
|
|
#endif
|
|
|
|
--
|
|
2.33.0
|
|
|