< prev index next >

src/share/vm/gc/shared/gcCause.hpp

Print this page

        

*** 134,146 **** int _position; public: GCCauseString(const char* prefix, GCCause::Cause cause) { if (PrintGCCause) { ! _position = jio_snprintf(_buffer, _length, "%s (%s) ", prefix, GCCause::to_string(cause)); } else { ! _position = jio_snprintf(_buffer, _length, "%s ", prefix); } assert(_position >= 0 && _position <= _length, "Need to increase the buffer size in GCCauseString? %d", _position); } --- 134,146 ---- int _position; public: GCCauseString(const char* prefix, GCCause::Cause cause) { if (PrintGCCause) { ! _position = jio_snprintf(_buffer, _length, "%s (%s)", prefix, GCCause::to_string(cause)); } else { ! _position = jio_snprintf(_buffer, _length, "%s", prefix); } assert(_position >= 0 && _position <= _length, "Need to increase the buffer size in GCCauseString? %d", _position); }
< prev index next >