< prev index next >
src/share/vm/logging/logFileOutput.hpp
Print this page
rev 10386 : imported patch 8146879.03
*** 37,46 ****
--- 37,48 ----
static const char* FileCountOptionKey;
static const char* FileSizeOptionKey;
static const char* PidFilenamePlaceholder;
static const char* TimestampFilenamePlaceholder;
static const char* TimestampFormat;
+ static const size_t DefaultRotationFileCount = 5;
+ static const size_t DefaultRotationFileSize = 2097152; // 20MiB
static const size_t StartTimeBufferSize = 20;
static const size_t PidBufferSize = 21;
static char _pid_str[PidBufferSize];
static char _vm_start_time_str[StartTimeBufferSize];
*** 59,71 ****
// Semaphore used for synchronizing file rotations and writes
Semaphore _rotation_semaphore;
void archive();
void rotate();
! bool configure_rotation(const char* options);
char *make_file_name(const char* file_name, const char* pid_string, const char* timestamp_string);
- static size_t parse_value(const char* value_str);
bool should_rotate() {
return _file_count > 0 && _rotate_size > 0 && _current_size >= _rotate_size;
}
--- 61,72 ----
// Semaphore used for synchronizing file rotations and writes
Semaphore _rotation_semaphore;
void archive();
void rotate();
! bool configure(const char* options);
char *make_file_name(const char* file_name, const char* pid_string, const char* timestamp_string);
bool should_rotate() {
return _file_count > 0 && _rotate_size > 0 && _current_size >= _rotate_size;
}
< prev index next >