src/hotspot/share/runtime/safepoint.hpp
changeset 54009 13acb4339895
parent 53895 b22d8ae270a2
child 54807 33fe50b6d707
--- a/src/hotspot/share/runtime/safepoint.hpp	Thu Feb 28 09:43:23 2019 +0800
+++ b/src/hotspot/share/runtime/safepoint.hpp	Wed Mar 06 11:15:16 2019 +0100
@@ -240,6 +240,8 @@
   static jlong _last_safepoint_sync_time_ns;
   static jlong _last_safepoint_cleanup_time_ns;
   static jlong _last_safepoint_end_time_ns;
+  // amount of ms since epoch
+  static jlong _last_safepoint_end_time_epoch_ms;
   // Relative
   static jlong _last_app_time_ns;
 
@@ -268,8 +270,8 @@
     return (os::javaTimeNanos() - _last_safepoint_end_time_ns) / (NANOUNITS / MILLIUNITS);
   }
 
-  static jlong end_of_last_safepoint_ms() {
-    return _last_safepoint_end_time_ns / (NANOUNITS / MILLIUNITS);
+  static jlong end_of_last_safepoint_epoch_ms() {
+    return _last_safepoint_end_time_epoch_ms;
   }
 
   static jlong start_of_safepoint() {