From 8bdffc5f7eb64dfbddb99d04c0a955bbf63a63ca Mon Sep 17 00:00:00 2001 From: Jie Fu Date: Tue, 22 Oct 2019 11:32:19 +0800 Subject: [PATCH] 8232757: VM fails to report an error for DumpLoadedClassList when cds is disabled Reviewed-by: iklam, dholmes --- src/hotspot/share/runtime/arguments.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hotspot/share/runtime/arguments.cpp b/src/hotspot/share/runtime/arguments.cpp index b4131ef4b4f..b113f96f7d1 100644 --- a/src/hotspot/share/runtime/arguments.cpp +++ b/src/hotspot/share/runtime/arguments.cpp @@ -3968,6 +3968,11 @@ jint Arguments::parse(const JavaVMInitArgs* initial_cmd_args) { "Shared spaces are not supported in this VM\n"); return JNI_ERR; } + if (DumpLoadedClassList != NULL) { + jio_fprintf(defaultStream::error_stream(), + "DumpLoadedClassList is not supported in this VM\n"); + return JNI_ERR; + } if ((UseSharedSpaces && FLAG_IS_CMDLINE(UseSharedSpaces)) || log_is_enabled(Info, cds)) { warning("Shared spaces are not supported in this VM");