--- /dev/null 2016-10-25 08:46:44.038854975 +0200
+++ new/src/share/classes/sun/evtracing/parser/ClassMetadataEvent.java 2016-10-25 10:40:33.179793411 +0200
@@ -0,0 +1,74 @@
+/*
+ * Copyright (c) 2014, 2015, Dynatrace and/or its affiliates. All rights reserved.
+ *
+ * This file is part of the Lock Contention Tracing Subsystem for the HotSpot
+ * Virtual Machine, which is developed at Christian Doppler Laboratory on
+ * Monitoring and Evolution of Very-Large-Scale Software Systems. Please
+ * contact us at if you need additional information
+ * or have any questions.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work. If not, see .
+ *
+ */
+package sun.evtracing.parser;
+
+import sun.evtracing.parser.TraceEventType;
+import sun.evtracing.processing.TraceEventHandler;
+
+public class ClassMetadataEvent extends MetadataEvent {
+
+ public static final TraceEventType EVENT_TYPE = TraceEventType.ClassMetadata;
+
+ public static ClassMetadataEvent parse(TraceReader reader, long thread) {
+ TraceEventType eventType = reader.readEventType();
+ assert eventType == EVENT_TYPE;
+ long clazz = reader.readClassId();
+ long classLoader = reader.readClassLoader();
+ String name = reader.readString();
+ return new ClassMetadataEvent(thread, clazz, classLoader, name);
+ }
+
+ private final long clazz;
+ private final long classLoader;
+ private final String name;
+
+ private ClassMetadataEvent(long thread, long clazz, long classLoader, String name) {
+ super(thread);
+ this.classLoader = classLoader;
+ this.clazz = clazz;
+ this.name = name;
+ }
+
+ @Override
+ public TraceEventType type() {
+ return EVENT_TYPE;
+ }
+
+ public long clazz() {
+ return clazz;
+ }
+
+ public long classLoader() {
+ return classLoader;
+ }
+
+ public String name() {
+ return name;
+ }
+
+ @Override
+ public void accept(TraceEventHandler handler) {
+ handler.classMetadata(this);
+ }
+}