# HG changeset patch # User mgronlun # Date 1458725506 -3600 # Node ID ac6850d71f72503c363f68e2f604896af7a1314a # Parent 52450946e39e6135927ed4c89daa8ee5f0f31f31 8152119: Event-based tracing to allow for tracing Klass definition Reviewed-by: dholmes, egahlin diff -r 52450946e39e -r ac6850d71f72 hotspot/src/share/vm/classfile/systemDictionary.cpp --- a/hotspot/src/share/vm/classfile/systemDictionary.cpp Wed Mar 23 03:33:22 2016 +0100 +++ b/hotspot/src/share/vm/classfile/systemDictionary.cpp Wed Mar 23 10:31:46 2016 +0100 @@ -65,6 +65,7 @@ #include "runtime/signature.hpp" #include "services/classLoadingService.hpp" #include "services/threadService.hpp" +#include "trace/traceMacros.hpp" #include "utilities/macros.hpp" #include "utilities/ticks.hpp" #if INCLUDE_CDS @@ -1497,6 +1498,8 @@ } + TRACE_KLASS_DEFINITION(k, THREAD); + } // Support parallel classloading diff -r 52450946e39e -r ac6850d71f72 hotspot/src/share/vm/trace/traceMacros.hpp --- a/hotspot/src/share/vm/trace/traceMacros.hpp Wed Mar 23 03:33:22 2016 +0100 +++ b/hotspot/src/share/vm/trace/traceMacros.hpp Wed Mar 23 10:31:46 2016 +0100 @@ -30,6 +30,7 @@ #define EVENT_THREAD_EXIT(thread) #define EVENT_THREAD_DESTRUCT(thread) #define TRACE_KLASS_CREATION(k, p, t) +#define TRACE_KLASS_DEFINITION(k, t) #define TRACE_INIT_KLASS_ID(k) #define TRACE_INIT_THREAD_ID(td)