Mercurial > hg > graal-compiler
comparison 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 |
comparison
equal
deleted
inserted
replaced
10393:603ca7e51354 | 10394:813f26e34135 |
---|---|
55 static CompileLog* _first; // head of static chain | 55 static CompileLog* _first; // head of static chain |
56 | 56 |
57 void va_tag(bool push, const char* format, va_list ap); | 57 void va_tag(bool push, const char* format, va_list ap); |
58 | 58 |
59 public: | 59 public: |
60 CompileLog(const char* file, FILE* fp, intx thread_id); | 60 CompileLog(const char* file_name, FILE* fp, intx thread_id); |
61 ~CompileLog(); | 61 ~CompileLog(); |
62 | 62 |
63 intx thread_id() { return _thread_id; } | 63 intx thread_id() { return _thread_id; } |
64 const char* file() { return _file; } | 64 const char* file() { return _file; } |
65 | 65 |