changeset 58732:d2da05214592

8232757: VM fails to report an error for DumpLoadedClassList when cds is disabled Reviewed-by: iklam, dholmes
author jiefu
date Tue, 22 Oct 2019 11:32:19 +0800
parents de395bbd7a93
children c4be316c3df4 24d411cb3a90
files src/hotspot/share/runtime/arguments.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/runtime/arguments.cpp	Mon Oct 21 17:27:51 2019 +0800
+++ b/src/hotspot/share/runtime/arguments.cpp	Tue Oct 22 11:32:19 2019 +0800
@@ -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");