< prev index next >

src/hotspot/share/runtime/arguments.cpp

Print this page

        

@@ -4063,11 +4063,17 @@
   }
 
   // Set object alignment values.
   set_object_alignment();
 
-#if !INCLUDE_CDS
+#if INCLUDE_CDS
+  if (DumpLoadedClassList != NULL) {
+    if (!add_property("java.lang.invoke.MethodHandle.CDS_TRACE_RESOLVE=true")) {
+      return JNI_ENOMEM;
+    }
+  }
+# else // !INCLUDE_CDS
   if (DumpSharedSpaces || RequireSharedSpaces) {
     jio_fprintf(defaultStream::error_stream(),
       "Shared spaces are not supported in this VM\n");
     return JNI_ERR;
   }
< prev index next >