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 |