mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-10 13:39:30 +00:00
8239000: handle ContendedPaddingWidth in vm_version_ppc
Reviewed-by: clanger, lucy
This commit is contained in:
parent
41d457a089
commit
cf4291db37
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user