--- old/src/share/vm/logging/logStream.hpp 2017-06-21 17:46:05.206783000 +0200 +++ new/src/share/vm/logging/logStream.hpp 2017-06-21 17:46:04.525735300 +0200 @@ -32,6 +32,7 @@ class LogStream : public outputStream { + friend class LogStreamTest_TestLineBufferAllocation_test_vm_Test; // see test/native/logging/test_logStream.cpp // Helper class, maintains the line buffer. For small line lengths, // we avoid malloc and use a fixed sized member char array. If LogStream @@ -49,14 +50,14 @@ const char* ptr() const { return _buf; } void append(const char* s, size_t len); void reset(); - }; + }; LineBuffer _current_line; LogTargetHandle _log_handle; // Prevent operator new for LogStream. static void* operator new (size_t); static void* operator new[] (size_t); - + public: // Constructor to support creation from a LogTarget instance. //