8176140: 8176140-Crashes-or-timeouts-during-error-reporting-may-lead-to-infinitely-repeated-error-logs-until-ErrorLogTimeout-is-hit
Reviewed-by: cjplummer, dholmes
--- 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