Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/virtualspace.cpp @ 12240:8c5e6482cbfc
8024752: Log TraceMetadata* output to gclog_or_tty instead of tty
Reviewed-by: brutisso, mgerdin, coleenp
author | stefank |
---|---|
date | Fri, 13 Sep 2013 22:25:27 +0200 |
parents | c4c768305a8f |
children | 04b18a42c2f3 |
comparison
equal
deleted
inserted
replaced
12239:8227700da288 | 12240:8c5e6482cbfc |
---|---|
752 assert(low_boundary() <= lower_high_boundary(), "lower high boundary"); | 752 assert(low_boundary() <= lower_high_boundary(), "lower high boundary"); |
753 assert(upper_high_boundary() <= high_boundary(), "upper high boundary"); | 753 assert(upper_high_boundary() <= high_boundary(), "upper high boundary"); |
754 assert(high() <= upper_high(), "upper high"); | 754 assert(high() <= upper_high(), "upper high"); |
755 } | 755 } |
756 | 756 |
757 void VirtualSpace::print_on(outputStream* out) { | |
758 out->print ("Virtual space:"); | |
759 if (special()) out->print(" (pinned in memory)"); | |
760 out->cr(); | |
761 out->print_cr(" - committed: " SIZE_FORMAT, committed_size()); | |
762 out->print_cr(" - reserved: " SIZE_FORMAT, reserved_size()); | |
763 out->print_cr(" - [low, high]: [" INTPTR_FORMAT ", " INTPTR_FORMAT "]", low(), high()); | |
764 out->print_cr(" - [low_b, high_b]: [" INTPTR_FORMAT ", " INTPTR_FORMAT "]", low_boundary(), high_boundary()); | |
765 } | |
766 | |
757 void VirtualSpace::print() { | 767 void VirtualSpace::print() { |
758 tty->print ("Virtual space:"); | 768 print_on(tty); |
759 if (special()) tty->print(" (pinned in memory)"); | 769 } |
760 tty->cr(); | |
761 tty->print_cr(" - committed: " SIZE_FORMAT, committed_size()); | |
762 tty->print_cr(" - reserved: " SIZE_FORMAT, reserved_size()); | |
763 tty->print_cr(" - [low, high]: [" INTPTR_FORMAT ", " INTPTR_FORMAT "]", low(), high()); | |
764 tty->print_cr(" - [low_b, high_b]: [" INTPTR_FORMAT ", " INTPTR_FORMAT "]", low_boundary(), high_boundary()); | |
765 } | |
766 | |
767 | 770 |
768 /////////////// Unit tests /////////////// | 771 /////////////// Unit tests /////////////// |
769 | 772 |
770 #ifndef PRODUCT | 773 #ifndef PRODUCT |
771 | 774 |