# HG changeset patch # User jiefu # Date 1571715139 -28800 # Tue Oct 22 11:32:19 2019 +0800 # Node ID d9991f760e17783c9a0b900ed40079d4552c42f4 # Parent de395bbd7a938e40d2d83ce3fd02d3e43483019d 8232757: VM fails to report an error for DumpLoadedClassList when cds is disabled Reviewed-by: diff --git a/src/hotspot/share/runtime/arguments.cpp b/src/hotspot/share/runtime/arguments.cpp --- a/src/hotspot/share/runtime/arguments.cpp +++ b/src/hotspot/share/runtime/arguments.cpp @@ -3968,6 +3968,11 @@ "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");