comparison src/cpu/x86/vm/vm_version_x86.cpp @ 7643:3ac7d10a6572

Merge with hsx25/hotspot.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Thu, 31 Jan 2013 15:42:25 +0100
parents 989155e2d07a 522c328b8b77
children 6b0fd0964b87
comparison
equal deleted inserted replaced
7573:17b6a63fe7c2 7643:3ac7d10a6572
659 UseSSE42Intrinsics = true; 659 UseSSE42Intrinsics = true;
660 } 660 }
661 } 661 }
662 } 662 }
663 } 663 }
664 #if defined(COMPILER2) && defined(_ALLBSD_SOURCE)
665 if (MaxVectorSize > 16) {
666 // Limit vectors size to 16 bytes on BSD until it fixes
667 // restoring upper 128bit of YMM registers on return
668 // from signal handler.
669 FLAG_SET_DEFAULT(MaxVectorSize, 16);
670 }
671 #endif // COMPILER2
664 672
665 // Use population count instruction if available. 673 // Use population count instruction if available.
666 if (supports_popcnt()) { 674 if (supports_popcnt()) {
667 if (FLAG_IS_DEFAULT(UsePopCountInstruction)) { 675 if (FLAG_IS_DEFAULT(UsePopCountInstruction)) {
668 UsePopCountInstruction = true; 676 UsePopCountInstruction = true;
742 // Prefetch settings 750 // Prefetch settings
743 PrefetchCopyIntervalInBytes = prefetch_copy_interval_in_bytes(); 751 PrefetchCopyIntervalInBytes = prefetch_copy_interval_in_bytes();
744 PrefetchScanIntervalInBytes = prefetch_scan_interval_in_bytes(); 752 PrefetchScanIntervalInBytes = prefetch_scan_interval_in_bytes();
745 PrefetchFieldsAhead = prefetch_fields_ahead(); 753 PrefetchFieldsAhead = prefetch_fields_ahead();
746 #endif 754 #endif
755
756 if (FLAG_IS_DEFAULT(ContendedPaddingWidth) &&
757 (cache_line_size > ContendedPaddingWidth))
758 ContendedPaddingWidth = cache_line_size;
747 759
748 #ifndef PRODUCT 760 #ifndef PRODUCT
749 if (PrintMiscellaneous && Verbose) { 761 if (PrintMiscellaneous && Verbose) {
750 tty->print_cr("Logical CPUs per core: %u", 762 tty->print_cr("Logical CPUs per core: %u",
751 logical_processors_per_package()); 763 logical_processors_per_package());
789 tty->print_cr("PrefetchScanIntervalInBytes %d", PrefetchScanIntervalInBytes); 801 tty->print_cr("PrefetchScanIntervalInBytes %d", PrefetchScanIntervalInBytes);
790 } 802 }
791 if (PrefetchFieldsAhead > 0) { 803 if (PrefetchFieldsAhead > 0) {
792 tty->print_cr("PrefetchFieldsAhead %d", PrefetchFieldsAhead); 804 tty->print_cr("PrefetchFieldsAhead %d", PrefetchFieldsAhead);
793 } 805 }
806 if (ContendedPaddingWidth > 0) {
807 tty->print_cr("ContendedPaddingWidth %d", ContendedPaddingWidth);
808 }
794 } 809 }
795 #endif // !PRODUCT 810 #endif // !PRODUCT
796 } 811 }
797 812
798 void VM_Version::initialize() { 813 void VM_Version::initialize() {