8152119: Event-based tracing to allow for tracing Klass definition
authormgronlun
Wed, 23 Mar 2016 10:31:46 +0100
changeset 37175 ac6850d71f72
parent 37174 52450946e39e
child 37176 663bdc7d0b86
child 37177 49d02f305b29
child 37181 0d5e8ae18924
8152119: Event-based tracing to allow for tracing Klass definition Reviewed-by: dholmes, egahlin
hotspot/src/share/vm/classfile/systemDictionary.cpp
hotspot/src/share/vm/trace/traceMacros.hpp
--- 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
--- 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)