changeset 46320:a38f07dfcf47

8176140: 8176140-Crashes-or-timeouts-during-error-reporting-may-lead-to-infinitely-repeated-error-logs-until-ErrorLogTimeout-is-hit Reviewed-by: cjplummer, dholmes
author stuefe
date Wed, 08 Mar 2017 19:25:15 +0100
parents a587da3329a5
children 640277633c23
files hotspot/src/share/vm/utilities/vmError.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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