8139801: Error message from validation check has wrong order on Windows

Added flushing stdout and stderr before exit or abort

Reviewed-by: coleenp, cjplummer
This commit is contained in:
Sangheon Kim 2015-10-26 08:34:25 -07:00
parent 25cc742a8f
commit 468f74a1a8
2 changed files with 9 additions and 0 deletions

View file

@ -575,6 +575,11 @@ void vm_shutdown()
void vm_abort(bool dump_core) {
vm_perform_shutdown_actions();
os::wait_for_keypress_at_exit();
// Flush stdout and stderr before abort.
fflush(stdout);
fflush(stderr);
os::abort(dump_core);
ShouldNotReachHere();
}