Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.
/ jdk13u-dev Public archive

Commit

Permalink
8239000: handle ContendedPaddingWidth in vm_version_ppc
Browse files Browse the repository at this point in the history
Backport-of: cf4291d
  • Loading branch information
Olga Mikhaltsova authored and Yuri Nesterenko committed Dec 22, 2020
1 parent ead24ad commit 164abd4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/hotspot/cpu/ppc/vm_version_ppc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,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) {
Expand Down Expand Up @@ -525,6 +529,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
Expand Down

1 comment on commit 164abd4

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.