Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
8239000: handle ContendedPaddingWidth in vm_version_ppc
Reviewed-by: clanger, lucy
- Loading branch information
Showing
with
11 additions
and
0 deletions.
-
+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 |
|
|