8152119: Event-based tracing to allow for tracing Klass definition
Reviewed-by: dholmes, egahlin
--- 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)