Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6750389

The cpuManufactorer does not correctly recognized for Solaris 10

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7
    • 6u7
    • install
    • b01
    • 6u5
    • b43
    • x86
    • solaris
    • Not verified

        Original report is at http://www.netbeans.org/issues/show_bug.cgi?id=143095

        Once fixed please send me updated sources/diff so I can keep our private copy in sync.

        Here is the code for Solaris CPU Manufacturer.
         private String getSolarisCpuManufacturer() {
                // not fully accurate, this could be another manufacturer (fujitsu for example)
                if ("sparc".equalsIgnoreCase(System.getProperty("os.arch"))) {
                    return "Sun Microsystems, Inc";
                }

                // if we're here, then we'll try smbios (type 3)
                return getSmbiosData("3", "Manufacturer: ");
            }
        However it is needed to check the paramter "4" to get CPU information.
        -----------------
        -->/usr/sbin/smbios -t 4
        ID SIZE TYPE
        4 66 SMB_TYPE_PROCESSOR (processor)

          Manufacturer: AMD
          Version: AMD
          Location Tag: CPU1
        ..
        I checked on "SunOS 5.11 snv_79 i86pc i386 i86pc".

              mchung Mandy Chung (Inactive)
              mslamasunw Marek Slama (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: