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

@ -4061,6 +4061,10 @@ static jint JNI_CreateJavaVM_inner(JavaVM **vm, void **penv, void *args) {
OrderAccess::release_store(&vm_created, 0);
}
// Flush stdout and stderr before exit.
fflush(stdout);
fflush(stderr);
return result;
}