# HG changeset patch # User vlivanov # Date 1500293492 0 # Node ID bab8454fdbedc1327efedc73337fe09acccb7d2a # Parent b7c2e9a24d49835919fb5be89f27d6f1f2c9084c# Parent dc24cb5e50a198d86ad7f06adc36fb2c246a3a9a Merge diff -r b7c2e9a24d49 -r bab8454fdbed hotspot/src/share/vm/code/dependencies.cpp --- a/hotspot/src/share/vm/code/dependencies.cpp Mon Jul 17 11:07:12 2017 +0000 +++ b/hotspot/src/share/vm/code/dependencies.cpp Mon Jul 17 12:11:32 2017 +0000 @@ -742,7 +742,7 @@ xtty->object("x", arg.metadata_value()); } } else { - char xn[10]; sprintf(xn, "x%d", j); + char xn[12]; sprintf(xn, "x%d", j); if (arg.is_oop()) { xtty->object(xn, Handle(thread, arg.oop_value())); } else { diff -r b7c2e9a24d49 -r bab8454fdbed hotspot/src/share/vm/logging/logFileOutput.cpp --- a/hotspot/src/share/vm/logging/logFileOutput.cpp Mon Jul 17 11:07:12 2017 +0000 +++ b/hotspot/src/share/vm/logging/logFileOutput.cpp Mon Jul 17 12:11:32 2017 +0000 @@ -32,13 +32,13 @@ #include "utilities/globalDefinitions.hpp" #include "utilities/defaultStream.hpp" -const char* LogFileOutput::Prefix = "file="; -const char* LogFileOutput::FileOpenMode = "a"; -const char* LogFileOutput::PidFilenamePlaceholder = "%p"; -const char* LogFileOutput::TimestampFilenamePlaceholder = "%t"; -const char* LogFileOutput::TimestampFormat = "%Y-%m-%d_%H-%M-%S"; -const char* LogFileOutput::FileSizeOptionKey = "filesize"; -const char* LogFileOutput::FileCountOptionKey = "filecount"; +const char* const LogFileOutput::Prefix = "file="; +const char* const LogFileOutput::FileOpenMode = "a"; +const char* const LogFileOutput::PidFilenamePlaceholder = "%p"; +const char* const LogFileOutput::TimestampFilenamePlaceholder = "%t"; +const char* const LogFileOutput::TimestampFormat = "%Y-%m-%d_%H-%M-%S"; +const char* const LogFileOutput::FileSizeOptionKey = "filesize"; +const char* const LogFileOutput::FileCountOptionKey = "filecount"; char LogFileOutput::_pid_str[PidBufferSize]; char LogFileOutput::_vm_start_time_str[StartTimeBufferSize]; diff -r b7c2e9a24d49 -r bab8454fdbed hotspot/src/share/vm/logging/logFileOutput.hpp --- a/hotspot/src/share/vm/logging/logFileOutput.hpp Mon Jul 17 11:07:12 2017 +0000 +++ b/hotspot/src/share/vm/logging/logFileOutput.hpp Mon Jul 17 12:11:32 2017 +0000 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -33,12 +33,12 @@ // The log file output, with support for file rotation based on a target size. class LogFileOutput : public LogFileStreamOutput { private: - static const char* FileOpenMode; - static const char* FileCountOptionKey; - static const char* FileSizeOptionKey; - static const char* PidFilenamePlaceholder; - static const char* TimestampFilenamePlaceholder; - static const char* TimestampFormat; + static const char* const FileOpenMode; + static const char* const FileCountOptionKey; + static const char* const FileSizeOptionKey; + static const char* const PidFilenamePlaceholder; + static const char* const TimestampFilenamePlaceholder; + static const char* const TimestampFormat; static const size_t DefaultFileCount = 5; static const size_t DefaultFileSize = 20 * M; static const size_t StartTimeBufferSize = 20; @@ -91,7 +91,7 @@ return _name; } - static const char* Prefix; + static const char* const Prefix; static void set_file_name_parameters(jlong start_time); };