< prev index next >

src/share/vm/utilities/ostream.hpp

Print this page
rev 9826 : [mq]: log_attribute

*** 1,7 **** /* ! * Copyright (c) 1997, 2015, 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. --- 1,7 ---- /* ! * Copyright (c) 1997, 2016, 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.
*** 25,34 **** --- 25,35 ---- #ifndef SHARE_VM_UTILITIES_OSTREAM_HPP #define SHARE_VM_UTILITIES_OSTREAM_HPP #include "memory/allocation.hpp" #include "runtime/timer.hpp" + #include "utilities/globalDefinitions.hpp" class GCId; DEBUG_ONLY(class ResourceMark;) // Output streams for printing
*** 234,244 **** }; class logStream : public outputStream { private: stringStream _current_line; ! void (*_log_func)(const char* fmt, ...); public: void write(const char* s, size_t len); logStream(void (*log_func)(const char* fmt, ...)) : _log_func(log_func) {} ~logStream() { guarantee(_current_line.size() == 0, "Buffer not flushed. Missing call to print_cr()?"); --- 235,245 ---- }; class logStream : public outputStream { private: stringStream _current_line; ! void (*_log_func)(const char* fmt, ...) ATTRIBUTE_PRINTF(1, 2); public: void write(const char* s, size_t len); logStream(void (*log_func)(const char* fmt, ...)) : _log_func(log_func) {} ~logStream() { guarantee(_current_line.size() == 0, "Buffer not flushed. Missing call to print_cr()?");
< prev index next >