8176140: 8176140-Crashes-or-timeouts-during-error-reporting-may-lead-to-infinitely-repeated-error-logs-until-ErrorLogTimeout-is-hit
authorstuefe
Wed, 08 Mar 2017 19:25:15 +0100
changeset 46320 a38f07dfcf47
parent 46319 a587da3329a5
child 46321 640277633c23
8176140: 8176140-Crashes-or-timeouts-during-error-reporting-may-lead-to-infinitely-repeated-error-logs-until-ErrorLogTimeout-is-hit Reviewed-by: cjplummer, dholmes
hotspot/src/share/vm/utilities/vmError.cpp
--- a/hotspot/src/share/vm/utilities/vmError.cpp	Thu Mar 09 10:48:44 2017 +0100
+++ b/hotspot/src/share/vm/utilities/vmError.cpp	Wed Mar 08 19:25:15 2017 +0100
@@ -1323,6 +1323,7 @@
     }
 
     report(&log, true);
+    log_done = true;
     _current_step = 0;
     _current_step_info = "";
 
@@ -1343,7 +1344,6 @@
     }
 
     log.set_fd(-1);
-    log_done = true;
   }
 
   static bool skip_replay = ReplayCompiles; // Do not overwrite file during replay