8239000: handle ContendedPaddingWidth in vm_version_ppc

Reviewed-by: clanger, lucy
This commit is contained in:
Matthias Baesken 2020-02-13 11:11:49 +01:00
parent 41d457a089
commit cf4291db37

View File

@ -225,6 +225,10 @@ void VM_Version::initialize() {
assert(AllocatePrefetchStyle >= 0, "AllocatePrefetchStyle should be positive");
if (FLAG_IS_DEFAULT(ContendedPaddingWidth) && (cache_line_size > ContendedPaddingWidth)) {
ContendedPaddingWidth = cache_line_size;
}
// If running on Power8 or newer hardware, the implementation uses the available vector instructions.
// In all other cases, the implementation uses only generally available instructions.
if (!UseCRC32Intrinsics) {
@ -536,6 +540,13 @@ bool VM_Version::use_biased_locking() {
void VM_Version::print_features() {
tty->print_cr("Version: %s L1_data_cache_line_size=%d", features_string(), L1_data_cache_line_size());
if (Verbose) {
if (ContendedPaddingWidth > 0) {
tty->cr();
tty->print_cr("ContendedPaddingWidth " INTX_FORMAT, ContendedPaddingWidth);
}
}
}
#ifdef COMPILER2