From 348423a0b0d5a4143a294abb4291509f03657343 Mon Sep 17 00:00:00 2001 From: egahlin Date: Thu, 13 Dec 2018 14:21:04 +0100 Subject: [PATCH] 8215175: Inconsistencies in JFR event metadata Reviewed-by: mgronlun --- .../jfr/leakprofiler/emitEventOperation.cpp | 2 +- src/share/vm/jfr/metadata/metadata.xml | 54 ++++++++++--------- src/share/vm/jfr/metadata/metadata.xsd | 3 +- .../vm/jfr/periodic/jfrNetworkUtilization.cpp | 4 +- 4 files changed, 32 insertions(+), 31 deletions(-) diff --git a/src/share/vm/jfr/leakprofiler/emitEventOperation.cpp b/src/share/vm/jfr/leakprofiler/emitEventOperation.cpp index 852f95272..63e26c38b 100644 --- a/src/share/vm/jfr/leakprofiler/emitEventOperation.cpp +++ b/src/share/vm/jfr/leakprofiler/emitEventOperation.cpp @@ -184,7 +184,7 @@ static int array_size(const oop object) { if (object->is_array()) { return arrayOop(object)->length(); } - return -1; + return min_jint; } void EmitEventOperation::write_event(const ObjectSample* sample, EdgeStore* edge_store) { diff --git a/src/share/vm/jfr/metadata/metadata.xml b/src/share/vm/jfr/metadata/metadata.xml index 648aa9a05..12c3c638b 100644 --- a/src/share/vm/jfr/metadata/metadata.xml +++ b/src/share/vm/jfr/metadata/metadata.xml @@ -65,19 +65,19 @@ - - - @@ -350,7 +350,7 @@ - + @@ -362,7 +362,7 @@ - + @@ -557,9 +557,9 @@ relation="SafepointId" /> - - + - @@ -640,8 +640,8 @@ - - + + @@ -656,13 +656,13 @@ - + - - + + @@ -680,7 +680,7 @@ - + @@ -735,8 +735,7 @@ + description="Module to which the package is qualifiedly exported. If null or N/A, the package is unqualifiedly exported" /> --> @@ -1092,7 +1091,7 @@ - + @@ -1129,13 +1128,16 @@ - - - - - - - - - + + + + + + + + + + + + diff --git a/src/share/vm/jfr/metadata/metadata.xsd b/src/share/vm/jfr/metadata/metadata.xsd index aad3ec4cb..4bcb96753 100644 --- a/src/share/vm/jfr/metadata/metadata.xsd +++ b/src/share/vm/jfr/metadata/metadata.xsd @@ -107,8 +107,7 @@ - - + diff --git a/src/share/vm/jfr/periodic/jfrNetworkUtilization.cpp b/src/share/vm/jfr/periodic/jfrNetworkUtilization.cpp index 9d940db62..6a7c0d84f 100644 --- a/src/share/vm/jfr/periodic/jfrNetworkUtilization.cpp +++ b/src/share/vm/jfr/periodic/jfrNetworkUtilization.cpp @@ -173,8 +173,8 @@ void JfrNetworkUtilization::send_events() { event.set_starttime(cur_time); event.set_endtime(cur_time); event.set_networkInterface(entry.id); - event.set_readRate(read_rate); - event.set_writeRate(write_rate); + event.set_readRate(8 * read_rate); + event.set_writeRate(8 * write_rate); event.commit(); } // update existing entry with new values -- GitLab