Mercurial > hg > truffle
comparison src/share/vm/utilities/events.hpp @ 7193:ee32440febeb
8001538: hs_err file does not list anymore compiled methods in compilation events
Summary: Fixed message buffer size calculation.
Reviewed-by: kvn, twisti
author | vlivanov |
---|---|
date | Wed, 21 Nov 2012 05:57:12 -0800 |
parents | d2a62e0f25eb |
children | 6f817ce50129 |
comparison
equal
deleted
inserted
replaced
7192:7cc69864a29b | 7193:ee32440febeb |
---|---|
133 print(out, e.data); | 133 print(out, e.data); |
134 } | 134 } |
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 class StringLogMessage : public FormatBuffer<132> { | 138 class StringLogMessage : public FormatBuffer<256> { |
139 public: | 139 public: |
140 // Wrap this buffer in a stringStream. | 140 // Wrap this buffer in a stringStream. |
141 stringStream stream() { | 141 stringStream stream() { |
142 return stringStream(_buf, sizeof(_buf)); | 142 return stringStream(_buf, size()); |
143 } | 143 } |
144 }; | 144 }; |
145 | 145 |
146 // A simple ring buffer of fixed size text messages. | 146 // A simple ring buffer of fixed size text messages. |
147 class StringEventLog : public EventLogBase<StringLogMessage> { | 147 class StringEventLog : public EventLogBase<StringLogMessage> { |