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

System property sun.cpu.isalist is incorrectly set on Windows 2000+

XMLWordPrintable

    • b42
    • x86
    • windows_2000

      On Windows NT 4.0 x86, the system property sun.cpu.isalist
      is initialized to a list
      that includes the strings pentium_pro pentium_pro+mmx pentium+mmx,
      where those actually match the real CPU.

      On Windows 2000, XP, and 2003, those strings are not included
      in the system property.
      In the code, the test for Windows system family (NT vs. 9x) is incorrectly
      testing specifically for "Windows NT", i.e. only NT 4.

      The code should avoid using the wProcessorType member, since
      it has been deprecated by Microsoft.

      The code should not check wProcessorLevel without first checking
      wProcessorArchitecture, since the former is meaningless without
      the latter, and can give rise to future bugs where the introduction
      of a new processor will cause the code to think it's running on an
      x86 instead of a ia64, for example.

      ###@###.### 2004-02-13

            martin Martin Buchholz
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: