Skip to content

Commit 1a0fe49

Browse files
committed
8347256: Epsilon: Demote heap size and AlwaysPreTouch warnings to info level
Reviewed-by: tschatzl, phh
1 parent 8b07617 commit 1a0fe49

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/hotspot/share/gc/epsilon/epsilonInitLogger.cpp

+12-12
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,6 @@
3232
#include "utilities/globalDefinitions.hpp"
3333

3434
void EpsilonInitLogger::print_gc_specific() {
35-
// Warn users that non-resizable heap might be better for some configurations.
36-
// We are not adjusting the heap size by ourselves, because it affects startup time.
37-
if (InitialHeapSize != MaxHeapSize) {
38-
log_warning(gc, init)("Consider setting -Xms equal to -Xmx to avoid resizing hiccups");
39-
}
40-
41-
// Warn users that AlwaysPreTouch might be better for some configurations.
42-
// We are not turning this on by ourselves, because it affects startup time.
43-
if (FLAG_IS_DEFAULT(AlwaysPreTouch) && !AlwaysPreTouch) {
44-
log_warning(gc, init)("Consider enabling -XX:+AlwaysPreTouch to avoid memory commit hiccups");
45-
}
46-
4735
if (UseTLAB) {
4836
size_t max_tlab = EpsilonHeap::heap()->max_tlab_size() * HeapWordSize;
4937
log_info(gc, init)("TLAB Size Max: " SIZE_FORMAT "%s",
@@ -57,6 +45,18 @@ void EpsilonInitLogger::print_gc_specific() {
5745
} else {
5846
log_info(gc, init)("TLAB: Disabled");
5947
}
48+
49+
// Suggest that non-resizable heap might be better for some configurations.
50+
// We are not adjusting the heap size by ourselves, because it affects startup time.
51+
if (InitialHeapSize != MaxHeapSize) {
52+
log_info(gc)("Consider setting -Xms equal to -Xmx to avoid resizing hiccups");
53+
}
54+
55+
// Suggest that AlwaysPreTouch might be better for some configurations.
56+
// We are not turning this on by ourselves, because it affects startup time.
57+
if (FLAG_IS_DEFAULT(AlwaysPreTouch) && !AlwaysPreTouch) {
58+
log_info(gc)("Consider enabling -XX:+AlwaysPreTouch to avoid memory commit hiccups");
59+
}
6060
}
6161

6262
void EpsilonInitLogger::print() {

0 commit comments

Comments
 (0)