Skip to content

Commit fc3dea8

Browse files
MBaeskenpull[bot]
authored andcommitted
8320300: Adjust hs_err output in malloc/mmap error cases
Reviewed-by: clanger, mdoerr
1 parent c97a6ee commit fc3dea8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/hotspot/share/utilities/vmError.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ static void print_oom_reasons(outputStream* st) {
493493
st->print_cr("# Possible reasons:");
494494
st->print_cr("# The system is out of physical RAM or swap space");
495495
if (UseCompressedOops) {
496-
st->print_cr("# The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap");
496+
st->print_cr("# This process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap");
497497
}
498498
if (LogBytesPerWord == 2) {
499499
st->print_cr("# In 32 bit mode, the process size limit was hit");
@@ -831,9 +831,9 @@ void VMError::report(outputStream* st, bool _verbose) {
831831
"(mprotect) failed to protect ");
832832
jio_snprintf(buf, sizeof(buf), SIZE_FORMAT, _size);
833833
st->print("%s", buf);
834-
st->print(" bytes");
834+
st->print(" bytes.");
835835
if (strlen(_detail_msg) > 0) {
836-
st->print(" for ");
836+
st->print(" Error detail: ");
837837
st->print("%s", _detail_msg);
838838
}
839839
st->cr();

0 commit comments

Comments
 (0)