diff -r 1295669a44c7 src/hotspot/share/code/codeHeapState.cpp --- a/src/hotspot/share/code/codeHeapState.cpp Wed May 22 07:10:54 2019 +0200 +++ b/src/hotspot/share/code/codeHeapState.cpp Tue Jun 11 17:57:05 2019 +0200 @@ -91,7 +91,7 @@ /* _anyst name of the stream as used in the code */ \ /* _outst stream where final output will go to */ \ ResourceMark rm; \ - bufferedStream _sstobj = bufferedStream(4*K); \ + bufferedStream _sstobj(4*K); \ bufferedStream* _sstbuf = &_sstobj; \ outputStream* _outbuf = _outst; \ bufferedStream* _anyst = &_sstobj; /* any stream. Use this to just print - no buffer flush. */ diff -r 1295669a44c7 src/hotspot/share/utilities/events.hpp --- a/src/hotspot/share/utilities/events.hpp Wed May 22 07:10:54 2019 +0200 +++ b/src/hotspot/share/utilities/events.hpp Tue Jun 11 17:57:05 2019 +0200 @@ -136,11 +136,6 @@ // A simple wrapper class for fixed size text messages. class StringLogMessage : public FormatBuffer<256> { - public: - // Wrap this buffer in a stringStream. - stringStream stream() { - return stringStream(_buf, size()); - } }; // A simple ring buffer of fixed size text messages.