src/hotspot/share/utilities/events.hpp
changeset 54973 0927d8c7296f
parent 54623 1126f0607c70
child 55044 d3afe760b392
equal deleted inserted replaced
54972:f98a0ab24887 54973:0927d8c7296f
   135 };
   135 };
   136 
   136 
   137 // A simple wrapper class for fixed size text messages.
   137 // A simple wrapper class for fixed size text messages.
   138 template <size_t bufsz>
   138 template <size_t bufsz>
   139 class FormatStringLogMessage : public FormatBuffer<bufsz> {
   139 class FormatStringLogMessage : public FormatBuffer<bufsz> {
   140  public:
       
   141   // Wrap this buffer in a stringStream.
       
   142   stringStream stream() {
       
   143     return stringStream(this->_buf, this->size());
       
   144   }
       
   145 };
   140 };
   146 typedef FormatStringLogMessage<256> StringLogMessage;
   141 typedef FormatStringLogMessage<256> StringLogMessage;
   147 typedef FormatStringLogMessage<512> ExtendedStringLogMessage;
   142 typedef FormatStringLogMessage<512> ExtendedStringLogMessage;
   148 
   143 
   149 // A simple ring buffer of fixed size text messages.
   144 // A simple ring buffer of fixed size text messages.