hotspot/src/share/vm/utilities/ostream.hpp
changeset 768 d0bebc7eefc2
parent 347 df859fcca515
child 781 e1baa9c8f16f
child 1383 3a216aa862b7
--- a/hotspot/src/share/vm/utilities/ostream.hpp	Tue Jun 24 10:43:29 2008 -0700
+++ b/hotspot/src/share/vm/utilities/ostream.hpp	Tue Jun 24 16:00:14 2008 -0700
@@ -206,11 +206,12 @@
  protected:
   char*  buffer;
   size_t buffer_pos;
+  size_t buffer_max;
   size_t buffer_length;
   bool   buffer_fixed;
  public:
-  bufferedStream(size_t initial_bufsize = 256);
-  bufferedStream(char* fixed_buffer, size_t fixed_buffer_size);
+  bufferedStream(size_t initial_bufsize = 256, size_t bufmax = 1024*1024*10);
+  bufferedStream(char* fixed_buffer, size_t fixed_buffer_size, size_t bufmax = 1024*1024*10);
   ~bufferedStream();
   virtual void write(const char* c, size_t len);
   size_t      size() { return buffer_pos; }