1849 if (fp != NULL) { |
1849 if (fp != NULL) { |
1850 if (LogCompilation && Verbose) { |
1850 if (LogCompilation && Verbose) { |
1851 tty->print_cr("Opening compilation log %s", file_name); |
1851 tty->print_cr("Opening compilation log %s", file_name); |
1852 } |
1852 } |
1853 CompileLog* log = new(ResourceObj::C_HEAP, mtCompiler) CompileLog(file_name, fp, thread_id); |
1853 CompileLog* log = new(ResourceObj::C_HEAP, mtCompiler) CompileLog(file_name, fp, thread_id); |
|
1854 if (log == NULL) { |
|
1855 fclose(fp); |
|
1856 return; |
|
1857 } |
1854 thread->init_log(log); |
1858 thread->init_log(log); |
1855 |
1859 |
1856 if (xtty != NULL) { |
1860 if (xtty != NULL) { |
1857 ttyLocker ttyl; |
1861 ttyLocker ttyl; |
1858 // Record any per thread log files |
1862 // Record any per thread log files |