< prev index next >
src/share/vm/gc/shared/gcCause.hpp
Print this page
@@ -94,12 +94,12 @@
// Causes for collection of the tenured gernation
inline static bool is_tenured_allocation_failure_gc(GCCause::Cause cause) {
assert(cause != GCCause::_old_generation_too_full_to_scavenge &&
cause != GCCause::_old_generation_expanded_on_last_scavenge,
- err_msg("This GCCause may be correct but is not expected yet: %s",
- to_string(cause)));
+ "This GCCause may be correct but is not expected yet: %s",
+ to_string(cause));
// _tenured_generation_full or _cms_generation_full for full tenured generations
// _adaptive_size_policy for a full collection after a young GC
// _allocation_failure is the generic cause a collection which could result
// in the collection of the tenured generation if there is not enough space
// in the tenured generation to support a young GC.
@@ -139,18 +139,18 @@
_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,
- err_msg("Need to increase the buffer size in GCCauseString? %d", _position));
+ "Need to increase the buffer size in GCCauseString? %d", _position);
}
GCCauseString& append(const char* str) {
int res = jio_snprintf(_buffer + _position, _length - _position, "%s", str);
_position += res;
assert(res >= 0 && _position <= _length,
- err_msg("Need to increase the buffer size in GCCauseString? %d", res));
+ "Need to increase the buffer size in GCCauseString? %d", res);
return *this;
}
operator const char*() {
return _buffer;
< prev index next >