1.1 --- a/src/share/vm/runtime/virtualspace.cpp Fri Sep 13 22:23:48 2013 +0200 1.2 +++ b/src/share/vm/runtime/virtualspace.cpp Fri Sep 13 22:25:27 2013 +0200 1.3 @@ -754,16 +754,19 @@ 1.4 assert(high() <= upper_high(), "upper high"); 1.5 } 1.6 1.7 -void VirtualSpace::print() { 1.8 - tty->print ("Virtual space:"); 1.9 - if (special()) tty->print(" (pinned in memory)"); 1.10 - tty->cr(); 1.11 - tty->print_cr(" - committed: " SIZE_FORMAT, committed_size()); 1.12 - tty->print_cr(" - reserved: " SIZE_FORMAT, reserved_size()); 1.13 - tty->print_cr(" - [low, high]: [" INTPTR_FORMAT ", " INTPTR_FORMAT "]", low(), high()); 1.14 - tty->print_cr(" - [low_b, high_b]: [" INTPTR_FORMAT ", " INTPTR_FORMAT "]", low_boundary(), high_boundary()); 1.15 +void VirtualSpace::print_on(outputStream* out) { 1.16 + out->print ("Virtual space:"); 1.17 + if (special()) out->print(" (pinned in memory)"); 1.18 + out->cr(); 1.19 + out->print_cr(" - committed: " SIZE_FORMAT, committed_size()); 1.20 + out->print_cr(" - reserved: " SIZE_FORMAT, reserved_size()); 1.21 + out->print_cr(" - [low, high]: [" INTPTR_FORMAT ", " INTPTR_FORMAT "]", low(), high()); 1.22 + out->print_cr(" - [low_b, high_b]: [" INTPTR_FORMAT ", " INTPTR_FORMAT "]", low_boundary(), high_boundary()); 1.23 } 1.24 1.25 +void VirtualSpace::print() { 1.26 + print_on(tty); 1.27 +} 1.28 1.29 /////////////// Unit tests /////////////// 1.30