equal
deleted
inserted
replaced
532 out->print_cr(" committed "); |
532 out->print_cr(" committed "); |
533 } |
533 } |
534 } |
534 } |
535 } |
535 } |
536 |
536 |
|
537 static void print_basic_switches(outputStream* out, size_t scale) { |
|
538 out->print("MaxMetaspaceSize: "); |
|
539 if (MaxMetaspaceSize >= (max_uintx) - (2 * os::vm_page_size())) { |
|
540 // aka "very big". Default is max_uintx, but due to rounding in arg parsing the real |
|
541 // value is smaller. |
|
542 out->print("unlimited"); |
|
543 } else { |
|
544 print_human_readable_size(out, MaxMetaspaceSize, scale); |
|
545 } |
|
546 out->cr(); |
|
547 if (Metaspace::using_class_space()) { |
|
548 out->print("CompressedClassSpaceSize: "); |
|
549 print_human_readable_size(out, CompressedClassSpaceSize, scale); |
|
550 } |
|
551 out->cr(); |
|
552 } |
|
553 |
537 // This will print out a basic metaspace usage report but |
554 // This will print out a basic metaspace usage report but |
538 // unlike print_report() is guaranteed not to lock or to walk the CLDG. |
555 // unlike print_report() is guaranteed not to lock or to walk the CLDG. |
539 void MetaspaceUtils::print_basic_report(outputStream* out, size_t scale) { |
556 void MetaspaceUtils::print_basic_report(outputStream* out, size_t scale) { |
540 |
557 |
541 out->cr(); |
558 out->cr(); |
612 out->print(" Both: "); |
629 out->print(" Both: "); |
613 print_human_readable_size(out, Metaspace::chunk_manager_class()->free_chunks_total_bytes() + |
630 print_human_readable_size(out, Metaspace::chunk_manager_class()->free_chunks_total_bytes() + |
614 Metaspace::chunk_manager_metadata()->free_chunks_total_bytes(), scale); |
631 Metaspace::chunk_manager_metadata()->free_chunks_total_bytes(), scale); |
615 out->cr(); |
632 out->cr(); |
616 } |
633 } |
|
634 |
|
635 out->cr(); |
|
636 |
|
637 // Print basic settings |
|
638 print_basic_switches(out, scale); |
|
639 |
617 out->cr(); |
640 out->cr(); |
618 |
641 |
619 } |
642 } |
620 |
643 |
621 void MetaspaceUtils::print_report(outputStream* out, size_t scale, int flags) { |
644 void MetaspaceUtils::print_report(outputStream* out, size_t scale, int flags) { |
803 #endif |
826 #endif |
804 |
827 |
805 // Print some interesting settings |
828 // Print some interesting settings |
806 out->cr(); |
829 out->cr(); |
807 out->cr(); |
830 out->cr(); |
808 out->print("MaxMetaspaceSize: "); |
831 print_basic_switches(out, scale); |
809 print_human_readable_size(out, MaxMetaspaceSize, scale); |
832 |
810 out->cr(); |
833 out->cr(); |
811 out->print("InitialBootClassLoaderMetaspaceSize: "); |
834 out->print("InitialBootClassLoaderMetaspaceSize: "); |
812 print_human_readable_size(out, InitialBootClassLoaderMetaspaceSize, scale); |
835 print_human_readable_size(out, InitialBootClassLoaderMetaspaceSize, scale); |
813 out->cr(); |
|
814 |
|
815 out->print("UseCompressedClassPointers: %s", UseCompressedClassPointers ? "true" : "false"); |
|
816 out->cr(); |
|
817 if (Metaspace::using_class_space()) { |
|
818 out->print("CompressedClassSpaceSize: "); |
|
819 print_human_readable_size(out, CompressedClassSpaceSize, scale); |
|
820 } |
|
821 |
836 |
822 out->cr(); |
837 out->cr(); |
823 out->cr(); |
838 out->cr(); |
824 |
839 |
825 } // MetaspaceUtils::print_report() |
840 } // MetaspaceUtils::print_report() |