diff src/share/vm/compiler/compileLog.hpp @ 10394:813f26e34135

8013329: File leak in hotspot/src/share/vm/compiler/compileBroker.cpp Summary: Added calling of the destructor of CompileLog so that files are closed. Added/moved memory allocation/deallocation of the string that contains the name of the log file to class CompileLog. Reviewed-by: kvn, roland
author anoll
date Mon, 03 Jun 2013 08:52:20 +0200
parents c3e799c37717
children de6a9e811145
line wrap: on
line diff
--- a/src/share/vm/compiler/compileLog.hpp	Wed Apr 24 11:49:38 2013 +0200
+++ b/src/share/vm/compiler/compileLog.hpp	Mon Jun 03 08:52:20 2013 +0200
@@ -57,7 +57,7 @@
   void va_tag(bool push, const char* format, va_list ap);
 
  public:
-  CompileLog(const char* file, FILE* fp, intx thread_id);
+  CompileLog(const char* file_name, FILE* fp, intx thread_id);
   ~CompileLog();
 
   intx          thread_id()                      { return _thread_id; }