JDK-8147908 : VM version use of processor_count()
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Not an Issue
  • Submitted: 2016-01-21
  • Updated: 2016-06-01
  • Resolved: 2016-06-01
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Resolved
Description
With regard to the umbrella task JDK-8147905 please check how VM_Version utilizes the processor_count() information:

./os_cpu/solaris_sparc/vm/vm_version_solaris_sparc.cpp:        CPUVisitor cpu_visitor(this, (is_sun4v && !is_fujitsu) ? 1 : os::processor_count());

Comments
On 1/06/2016 9:10 AM, Igor Veresov wrote: > non-sun4v machines may have different CPUs. In such a case we report cache line sizes as 0. For sun4v we check only the first CPU, they are guaranteed to be the same. > > Also, for Solaris 12 there is a new API that we use to get the same data via sysconf/sysinfo. Solaris 12 supports only sun4v. > So it is correct to check all CPUs as given by os::processor_count.
01-06-2016