--- old/src/hotspot/share/prims/jvm.cpp 2020-08-18 21:51:57.690306074 -0700 +++ new/src/hotspot/share/prims/jvm.cpp 2020-08-18 21:51:57.574301708 -0700 @@ -44,6 +44,7 @@ #include "logging/log.hpp" #include "memory/dynamicArchive.hpp" #include "memory/heapShared.hpp" +#include "memory/lambdaFormInvokers.hpp" #include "memory/oopFactory.hpp" #include "memory/referenceType.hpp" #include "memory/resourceArea.hpp" @@ -3847,6 +3848,17 @@ #endif // INCLUDE_CDS JVM_END +JVM_ENTRY(void, JVM_CDSTraceResolve(JNIEnv* env, jclass ignored, jstring line)) +#if INCLUDE_CDS + if (line != NULL && DumpLoadedClassList != NULL && classlist_file->is_open()) { + ResourceMark rm(THREAD); + Handle h_line (THREAD, JNIHandles::resolve_non_null(line)); + char* c_line = java_lang_String::as_utf8_string(h_line()); + classlist_file->print_cr("%s %s", LambdaFormInvokers::lambda_form_invoker_tag(), c_line); + } +#endif // INCLUDE_CDS +JVM_END + JVM_ENTRY(jboolean, JVM_IsCDSDumpingEnabled(JNIEnv* env)) JVMWrapper("JVM_IsCDSDumpingEnable"); return DynamicDumpSharedSpaces;