7087969: GarbageCollectorMXBean notification contains ticks vs millis
authorfparain
Thu, 29 Mar 2012 02:12:40 -0700
changeset 12266 a7ec6d9d767f
parent 12265 bc2565f91b58
child 12267 a43041fec343
7087969: GarbageCollectorMXBean notification contains ticks vs millis Reviewed-by: acorn, dcubed, rbackman
hotspot/src/share/vm/services/gcNotifier.cpp
--- a/hotspot/src/share/vm/services/gcNotifier.cpp	Wed Mar 28 14:27:38 2012 -0700
+++ b/hotspot/src/share/vm/services/gcNotifier.cpp	Thu Mar 29 02:12:40 2012 -0700
@@ -163,8 +163,8 @@
   constructor_args.push_oop(gcInfo_instance);
   constructor_args.push_oop(getGcInfoBuilder(gcManager,THREAD));
   constructor_args.push_long(gcStatInfo->gc_index());
-  constructor_args.push_long(gcStatInfo->start_time());
-  constructor_args.push_long(gcStatInfo->end_time());
+  constructor_args.push_long(Management::ticks_to_ms(gcStatInfo->start_time()));
+  constructor_args.push_long(Management::ticks_to_ms(gcStatInfo->end_time()));
   constructor_args.push_oop(usage_before_gc_ah);
   constructor_args.push_oop(usage_after_gc_ah);
   constructor_args.push_oop(extra_array);