--- old/src/share/vm/gc_implementation/parallelScavenge/psAdaptiveSizePolicy.cpp 2013-06-06 11:23:21.000000000 +0200 +++ new/src/share/vm/gc_implementation/parallelScavenge/psAdaptiveSizePolicy.cpp 2013-06-06 11:23:21.000000000 +0200 @@ -1165,7 +1165,7 @@ // We use the tenuring threshold to equalize the cost of major // and minor collections. // ThresholdTolerance is used to indicate how sensitive the - // tenuring threshold is to differences in cost betweent the + // tenuring threshold is to differences in cost between the // collection types. // Get the times of interest. This involves a little work, so @@ -1257,7 +1257,7 @@ avg_promoted()->padded_average(), _avg_pretenured->padded_average(), tenuring_threshold, target_size); - tty->cr(); + gclog_or_tty->cr(); } set_survivor_size(target_size); @@ -1285,6 +1285,7 @@ " promoted: " SIZE_FORMAT " overflow: %s", survived, promoted, is_survivor_overflow ? "true" : "false"); + gclog_or_tty->cr(); } } --- old/src/share/vm/gc_implementation/parallelScavenge/psScavenge.cpp 2013-06-06 11:23:22.000000000 +0200 +++ new/src/share/vm/gc_implementation/parallelScavenge/psScavenge.cpp 2013-06-06 11:23:22.000000000 +0200 @@ -492,7 +492,7 @@ if (PrintAdaptiveSizePolicy) { gclog_or_tty->print("AdaptiveSizeStart: "); gclog_or_tty->stamp(); - gclog_or_tty->print_cr(" collection: %d ", + gclog_or_tty->print(" collection: %d ", heap->total_collections()); if (Verbose) { @@ -544,7 +544,7 @@ ((gc_cause != GCCause::_java_lang_system_gc) || UseAdaptiveSizePolicyWithSystemGC)) { - // Calculate optimial free space amounts + // Calculate optimal free space amounts assert(young_gen->max_size() > young_gen->from_space()->capacity_in_bytes() + young_gen->to_space()->capacity_in_bytes(),