src/share/vm/compiler/compileLog.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Cdiff src/share/vm/compiler/compileLog.cpp

src/share/vm/compiler/compileLog.cpp

Print this page

        

*** 54,65 **** _first = this; } } CompileLog::~CompileLog() { ! delete _out; _out = NULL; FREE_C_HEAP_ARRAY(char, _identities, mtCompiler); FREE_C_HEAP_ARRAY(char, _file, mtCompiler); } --- 54,67 ---- _first = this; } } CompileLog::~CompileLog() { ! delete _out; // Close fd in fileStream::~fileStream() _out = NULL; + // Remove partial file after merging in CompileLog::finish_log_on_error + unlink(_file); FREE_C_HEAP_ARRAY(char, _identities, mtCompiler); FREE_C_HEAP_ARRAY(char, _file, mtCompiler); }
*** 276,289 **** file->print_raw_cr("]]>"); file->print_raw_cr("</fragment>"); } file->print_raw_cr("</compilation_log>"); close(partial_fd); - unlink(partial_file); } CompileLog* next_log = log->_next; ! delete log; log = next_log; } _first = NULL; } --- 278,290 ---- file->print_raw_cr("]]>"); file->print_raw_cr("</fragment>"); } file->print_raw_cr("</compilation_log>"); close(partial_fd); } CompileLog* next_log = log->_next; ! delete log; // Removes partial file log = next_log; } _first = NULL; }
src/share/vm/compiler/compileLog.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File