src/share/vm/utilities/ostream.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File 7164841 Cdiff src/share/vm/utilities/ostream.hpp

src/share/vm/utilities/ostream.hpp

Print this page
7164841: Improvements to the GC log file rotation

*** 208,217 **** --- 208,218 ---- char* readln(char *data, int count); int eof() { return feof(_file); } long fileSize(); void rewind() { ::rewind(_file); } void flush(); + void dump_loggc_header(); }; // unlike fileStream, fdStream does unbuffered I/O by calling // open() and write() directly. It is async-safe, but output // from multiple thread may be mixed together. Used by fatal
*** 233,247 **** class rotatingFileStream : public fileStream { protected: char* _file_name; jlong _bytes_written; ! uintx _cur_file_num; // current logfile rotation number, from 0 to MaxGCLogFileNumbers-1 public: rotatingFileStream(const char* file_name); - rotatingFileStream(const char* file_name, const char* opentype); - rotatingFileStream(FILE* file) : fileStream(file) {} ~rotatingFileStream(); virtual void write(const char* c, size_t len); virtual void rotate_log(); }; --- 234,246 ---- class rotatingFileStream : public fileStream { protected: char* _file_name; jlong _bytes_written; ! uintx _cur_file_num; // current logfile rotation number, from 0 to NumberOfGCLogFiles-1 public: rotatingFileStream(const char* file_name); ~rotatingFileStream(); virtual void write(const char* c, size_t len); virtual void rotate_log(); };
src/share/vm/utilities/ostream.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File