3232#include " utilities/globalDefinitions.hpp"
3333
3434void 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
6262void EpsilonInitLogger::print () {
0 commit comments