8150441: CompileTask::print_impl() is broken after JDK-8146905
authorthartmann
Thu, 25 Feb 2016 08:47:57 +0100
changeset 36320 3d35d1e1dfde
parent 36319 1028635e6843
child 36324 7f71620b8732
8150441: CompileTask::print_impl() is broken after JDK-8146905 Summary: Timestamps should be explicitly initialized. Reviewed-by: dholmes
hotspot/src/share/vm/utilities/vmError.cpp
--- a/hotspot/src/share/vm/utilities/vmError.cpp	Wed Feb 24 20:18:04 2016 +0000
+++ b/hotspot/src/share/vm/utilities/vmError.cpp	Thu Feb 25 08:47:57 2016 +0100
@@ -1121,6 +1121,10 @@
   if (first_error_tid == -1 &&
       Atomic::cmpxchg_ptr(mytid, &first_error_tid, -1) == -1) {
 
+    // Initialize time stamps to use the same base.
+    out.time_stamp().update_to(1);
+    log.time_stamp().update_to(1);
+
     _id = id;
     _message = message;
     _thread = thread;