diff -r ef23ea332077 -r 2fe2063fe567 src/hotspot/share/compiler/compileTask.cpp --- a/src/hotspot/share/compiler/compileTask.cpp Tue Jun 04 11:55:51 2019 -0700 +++ b/src/hotspot/share/compiler/compileTask.cpp Tue Jun 04 12:44:53 2019 -0700 @@ -416,9 +416,7 @@ log->end_elem(); log->clear_identities(); // next task will have different CI log->tail("task"); - if (log->unflushed_count() > 2000) { - log->flush(); - } + log->flush(); log->mark_file_end(); }