< prev index next >
src/hotspot/share/utilities/events.hpp
Print this page
@@ -1,7 +1,7 @@
/*
- * 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -141,14 +141,14 @@
stringStream stream() {
return stringStream(_buf, size());
}
};
-// A simple ring buffer of fixed size text messages.
-class StringEventLog : public EventLogBase<StringLogMessage> {
+// A simple ring buffer of text messages.
+class StringEventLog : public EventLogBase<FormatBufferDynamic> {
public:
- StringEventLog(const char* name, int count = LogEventsBufferEntries) : EventLogBase<StringLogMessage>(name, count) {}
+ StringEventLog(const char* name, int count = LogEventsBufferEntries) : EventLogBase<FormatBufferDynamic>(name, count) {}
void logv(Thread* thread, const char* format, va_list ap) ATTRIBUTE_PRINTF(3, 0) {
if (!should_log()) return;
double timestamp = fetch_timestamp();
@@ -280,13 +280,13 @@
}
}
out->cr();
}
-// Implement a printing routine for the StringLogMessage
+// Implement a printing routine for the FormatBufferDynamic
template <>
-inline void EventLogBase<StringLogMessage>::print(outputStream* out, StringLogMessage& lm) {
+inline void EventLogBase<FormatBufferDynamic>::print(outputStream* out, FormatBufferDynamic& lm) {
out->print_raw(lm);
out->cr();
}
// Place markers for the beginning and end up of a set of events.
< prev index next >