--- old/src/share/vm/gc/shared/gcTraceSend.cpp 2016-07-13 15:18:48.566250005 +0200
+++ new/src/share/vm/gc/shared/gcTraceSend.cpp 2016-07-13 15:18:48.479247379 +0200
@@ -278,7 +278,7 @@
evt.set_gcId(GCId::current());
evt.set_threshold(threshold);
evt.set_targetOccupancy(target_occupancy);
- evt.set_thresholdPercentage(target_occupancy > 0 ? (threshold * 100 / target_occupancy) : 0);
+ evt.set_thresholdPercentage(target_occupancy > 0 ? ((double)threshold / target_occupancy) : 0.0);
evt.set_currentOccupancy(current_occupancy);
evt.set_lastAllocationSize(last_allocation_size);
evt.set_lastAllocationDuration(last_allocation_duration);
@@ -299,7 +299,7 @@
if (evt.should_commit()) {
evt.set_gcId(GCId::current());
evt.set_threshold(threshold);
- evt.set_thresholdPercentage(internal_target_occupancy > 0 ? (threshold * 100 / internal_target_occupancy) : 0);
+ evt.set_thresholdPercentage(internal_target_occupancy > 0 ? ((double)threshold / internal_target_occupancy) : 0.0);
evt.set_internalTargetOccupancy(internal_target_occupancy);
evt.set_currentOccupancy(current_occupancy);
evt.set_additionalBufferSize(additional_buffer_size);
--- old/src/share/vm/trace/traceevents.xml 2016-07-13 15:18:49.057264824 +0200
+++ new/src/share/vm/trace/traceevents.xml 2016-07-13 15:18:48.966262077 +0200
@@ -374,7 +374,7 @@
description="Basic statistics related to current IHOP calculation">
-
+
@@ -387,7 +387,7 @@
description="Statistics related to current adaptive IHOP calculation">
-
+