Skip to content
Permalink
Browse files

8239000: handle ContendedPaddingWidth in vm_version_ppc

Reviewed-by: clanger, lucy
  • Loading branch information
Matthias Baesken
Matthias Baesken committed Feb 13, 2020
1 parent 41d457a commit cf4291db370bb0bfaa7c8354308886315e1c3901
Showing with 11 additions and 0 deletions.
  1. +11 −0 src/hotspot/cpu/ppc/vm_version_ppc.cpp
@@ -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

0 comments on commit cf4291d

Please sign in to comment.