< prev index next >
src/share/vm/utilities/ostream.hpp
Print this page
*** 106,116 ****
void date_stamp(bool guard, const char* prefix, const char* suffix);
// A simplified call that includes a suffix of ": "
void date_stamp(bool guard) {
date_stamp(guard, "", ": ");
}
- void gclog_stamp();
// portable printing of 64 bit integers
void print_jlong(jlong value);
void print_julong(julong value);
--- 106,115 ----
*** 125,135 ****
};
// standard output
// ANSI C++ name collision
extern outputStream* tty; // tty output
- extern outputStream* gclog_or_tty; // stream for gc log if -Xloggc:<f>, or tty
class streamIndentor : public StackObj {
private:
outputStream* _str;
int _amount;
--- 124,133 ----
*** 245,278 ****
~logStream() {
guarantee(_current_line.size() == 0, "Buffer not flushed. Missing call to print_cr()?");
}
};
- class gcLogFileStream : public fileStream {
- protected:
- const char* _file_name;
- jlong _bytes_written;
- uintx _cur_file_num; // current logfile rotation number, from 0 to NumberOfGCLogFiles-1
- public:
- gcLogFileStream(const char* file_name);
- ~gcLogFileStream();
- virtual void write(const char* c, size_t len);
- virtual void rotate_log(bool force, outputStream* out = NULL);
- void dump_loggc_header();
-
- /* If "force" sets true, force log file rotation from outside JVM */
- bool should_rotate(bool force) {
- return force ||
- ((GCLogFileSize != 0) && (_bytes_written >= (jlong)GCLogFileSize));
- }
- };
-
- #ifndef PRODUCT
- // unit test for checking -Xloggc:<filename> parsing result
- void test_loggc_filename();
- #endif
-
void ostream_init();
void ostream_init_log();
void ostream_exit();
void ostream_abort();
--- 243,252 ----
< prev index next >