diff -r d4e7ccaf1445 -r 1512d88b24c6 src/hotspot/share/classfile/klassFactory.cpp --- 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