src/hotspot/share/classfile/classFileParser.cpp
Index Unified diffs Context diffs Sdiffs Frames Patch New Old Previous File Next File
*** old/src/hotspot/share/classfile/classFileParser.cpp	Thu Apr  4 00:18:49 2019
--- new/src/hotspot/share/classfile/classFileParser.cpp	Thu Apr  4 00:18:49 2019

*** 5630,5643 **** --- 5630,5655 ---- } ClassLoadingService::notify_class_loaded(ik, false /* not shared class */); if (!is_internal()) { if (log_is_enabled(Info, class, load)) { + bool trace_class_loading = log_is_enabled(Info, class, load); + #if INCLUDE_JVMCI + bool trace_loading_cause = TraceClassLoadingCause != NULL && + (strcmp(TraceClassLoadingCause, "*") == 0 || + strstr(ik->external_name(), TraceClassLoadingCause) != NULL); + trace_class_loading = trace_class_loading || trace_loading_cause; + #endif + if (trace_class_loading) { ResourceMark rm; const char* module_name = (module_entry->name() == NULL) ? UNNAMED_MODULE : module_entry->name()->as_C_string(); ik->print_class_load_logging(_loader_data, module_name, _stream); + #if INCLUDE_JVMCI + if (trace_loading_cause) { + JavaThread::current()->print_stack_on(tty); + } + #endif } if (ik->minor_version() == JAVA_PREVIEW_MINOR_VERSION && ik->major_version() != JAVA_MIN_SUPPORTED_VERSION && log_is_enabled(Info, class, preview)) {

src/hotspot/share/classfile/classFileParser.cpp
Index Unified diffs Context diffs Sdiffs Frames Patch New Old Previous File Next File