src/hotspot/share/classfile/klassFactory.cpp
changeset 54927 1512d88b24c6
parent 54340 2221f042556d
child 58447 319173c62caa
--- a/src/hotspot/share/classfile/klassFactory.cpp	Fri May 17 10:48:02 2019 -0400
+++ b/src/hotspot/share/classfile/klassFactory.cpp	Fri May 17 08:29:55 2019 -0700
@@ -218,7 +218,7 @@
   JFR_ONLY(ON_KLASS_CREATION(result, parser, THREAD);)
 
 #if INCLUDE_CDS
-  if (DumpSharedSpaces) {
+  if (DumpSharedSpaces || DynamicDumpSharedSpaces) {
     ClassLoader::record_result(result, stream, THREAD);
   }
 #endif // INCLUDE_CDS