United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7006505 Use kstat info to identify SPARC processor
JDK-7006505 : Use kstat info to identify SPARC processor

Details
Type:
Enhancement
Submit Date:
2010-12-13
Status:
Closed
Updated Date:
2011-04-23
Project Name:
JDK
Resolved Date:
2011-04-23
Component:
hotspot
OS:
solaris_10
Sub-Component:
compiler
CPU:
sparc
Priority:
P4
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs20 (b06)

Related Reports
Backport:
Backport:

Sub Tasks

Description
Currently we use cpu count (32) to distinguish T1 from latest T machines and it is not clear when/if we can get CPUID instruction or new Solaris interface which provides information we need. John G Johnson suggested to read kstat data to get more precise CPU information.

                                    

Comments
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/c04052fd6ae1
                                     
2010-12-18
PUBLIC COMMENTS

Unfortunately Solaris 8 (used to build JDK6) has different
kstat structure vs Solaris 10 (used to build JDK7) so
I have to work around this problem.

Verified with JPRT build and test for jdk6 and jdk7.

Additional changes:
Renamed is_niagara1 to is_niagara since it checks for
T family cpus not just T1.
Reduced heap size for test_gamma to -Xmx32m since
64bit VM reserves 1/4 of physical memory by default.
Fixed print format for reserved heap size.
Print compressed oops mode with -XX:+PrintMiscellaneous -XX:+Verbose.
Add check for VIS3.
Use FXTOD and FXTOS on T series and SPARC64
(tested with microbenchmark).
                                     
2010-12-18



Hardware and Software, Engineered to Work Together