--- old/src/hotspot/share/utilities/events.hpp 2018-05-01 09:30:58.090122885 +0900 +++ new/src/hotspot/share/utilities/events.hpp 2018-05-01 09:30:57.931122294 +0900 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2018, 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 @@ -143,10 +143,10 @@ } }; -// A simple ring buffer of fixed size text messages. -class StringEventLog : public EventLogBase { +// A simple ring buffer of text messages. +class StringEventLog : public EventLogBase { public: - StringEventLog(const char* name, int count = LogEventsBufferEntries) : EventLogBase(name, count) {} + StringEventLog(const char* name, int count = LogEventsBufferEntries) : EventLogBase(name, count) {} void logv(Thread* thread, const char* format, va_list ap) ATTRIBUTE_PRINTF(3, 0) { if (!should_log()) return; @@ -282,9 +282,9 @@ out->cr(); } -// Implement a printing routine for the StringLogMessage +// Implement a printing routine for the FormatBufferDynamic template <> -inline void EventLogBase::print(outputStream* out, StringLogMessage& lm) { +inline void EventLogBase::print(outputStream* out, FormatBufferDynamic& lm) { out->print_raw(lm); out->cr(); }