8320300: Adjust hs_err output in malloc/mmap error cases

Reviewed-by: clanger, mdoerr
This commit is contained in:
Matthias Baesken 2023-11-20 13:40:54 +00:00
parent 9f6a4a3f9c
commit 60c8d9c045

View File

@ -493,7 +493,7 @@ static void print_oom_reasons(outputStream* st) {
st->print_cr("# Possible reasons:");
st->print_cr("# The system is out of physical RAM or swap space");
if (UseCompressedOops) {
st->print_cr("# The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap");
st->print_cr("# This process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap");
}
if (LogBytesPerWord == 2) {
st->print_cr("# In 32 bit mode, the process size limit was hit");
@ -831,9 +831,9 @@ void VMError::report(outputStream* st, bool _verbose) {
"(mprotect) failed to protect ");
jio_snprintf(buf, sizeof(buf), SIZE_FORMAT, _size);
st->print("%s", buf);
st->print(" bytes");
st->print(" bytes.");
if (strlen(_detail_msg) > 0) {
st->print(" for ");
st->print(" Error detail: ");
st->print("%s", _detail_msg);
}
st->cr();