提交 929e9b36 编写于 作者: P poonam

8015903: Format issue with -XX:+PrintAdaptiveSizePolicy on JDK8

Summary: Missing linebreak in hotspot log.
Reviewed-by: brutisso, tschatzl
Contributed-by: vladimir.kempik@oracle.com
上级 e8d900d1
...@@ -1250,14 +1250,13 @@ uint PSAdaptiveSizePolicy::compute_survivor_space_size_and_threshold( ...@@ -1250,14 +1250,13 @@ uint PSAdaptiveSizePolicy::compute_survivor_space_size_and_threshold(
avg_promoted()->deviation()); avg_promoted()->deviation());
} }
gclog_or_tty->print( " avg_promoted_padded_avg: %f" gclog_or_tty->print_cr( " avg_promoted_padded_avg: %f"
" avg_pretenured_padded_avg: %f" " avg_pretenured_padded_avg: %f"
" tenuring_thresh: %d" " tenuring_thresh: %d"
" target_size: " SIZE_FORMAT, " target_size: " SIZE_FORMAT,
avg_promoted()->padded_average(), avg_promoted()->padded_average(),
_avg_pretenured->padded_average(), _avg_pretenured->padded_average(),
tenuring_threshold, target_size); tenuring_threshold, target_size);
tty->cr();
} }
set_survivor_size(target_size); set_survivor_size(target_size);
...@@ -1279,7 +1278,7 @@ void PSAdaptiveSizePolicy::update_averages(bool is_survivor_overflow, ...@@ -1279,7 +1278,7 @@ void PSAdaptiveSizePolicy::update_averages(bool is_survivor_overflow,
avg_promoted()->sample(promoted + _avg_pretenured->padded_average()); avg_promoted()->sample(promoted + _avg_pretenured->padded_average());
if (PrintAdaptiveSizePolicy) { if (PrintAdaptiveSizePolicy) {
gclog_or_tty->print( gclog_or_tty->print_cr(
"AdaptiveSizePolicy::update_averages:" "AdaptiveSizePolicy::update_averages:"
" survived: " SIZE_FORMAT " survived: " SIZE_FORMAT
" promoted: " SIZE_FORMAT " promoted: " SIZE_FORMAT
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册