379 if (FLAG_IS_DEFAULT(UseUnalignedAccesses)) { |
379 if (FLAG_IS_DEFAULT(UseUnalignedAccesses)) { |
380 FLAG_SET_DEFAULT(UseUnalignedAccesses, true); |
380 FLAG_SET_DEFAULT(UseUnalignedAccesses, true); |
381 } |
381 } |
382 } |
382 } |
383 |
383 |
|
384 void VM_Version::print_platform_virtualization_info(outputStream* st) { |
|
385 const char* info_file = "/proc/ppc64/lparcfg"; |
|
386 const char* kw[] = { "system_type=", // qemu indicates PowerKVM |
|
387 "partition_entitled_capacity=", // entitled processor capacity percentage |
|
388 "partition_max_entitled_capacity=", |
|
389 "capacity_weight=", // partition CPU weight |
|
390 "partition_active_processors=", |
|
391 "partition_potential_processors=", |
|
392 "entitled_proc_capacity_available=", |
|
393 "capped=", // 0 - uncapped, 1 - vcpus capped at entitled processor capacity percentage |
|
394 "shared_processor_mode=", // (non)dedicated partition |
|
395 "system_potential_processors=", |
|
396 "pool=", // CPU-pool number |
|
397 "pool_capacity=", |
|
398 "NumLpars=", // on non-KVM machines, NumLpars is not found for full partition mode machines |
|
399 NULL }; |
|
400 if (!print_matching_lines_from_file(info_file, st, kw)) { |
|
401 st->print_cr(" <%s Not Available>", info_file); |
|
402 } |
|
403 } |
|
404 |
384 bool VM_Version::use_biased_locking() { |
405 bool VM_Version::use_biased_locking() { |
385 #if INCLUDE_RTM_OPT |
406 #if INCLUDE_RTM_OPT |
386 // RTM locking is most useful when there is high lock contention and |
407 // RTM locking is most useful when there is high lock contention and |
387 // low data contention. With high lock contention the lock is usually |
408 // low data contention. With high lock contention the lock is usually |
388 // inflated and biased locking is not suitable for that case. |
409 // inflated and biased locking is not suitable for that case. |