sun.cpu.isalist

Alan Bateman Alan.Bateman at oracle.com
Wed Feb 16 12:33:41 UTC 2011


Dmytro Sheyko wrote:
> Hi,
>
> I have tried 1.7.0-ea-b129 and 1.6.0_24-b07 on Solaris 11 and they 
> both have shown empty "sun.cpu.isalist".
>
> At the same time isalist output is: "amd64 pentium_pro+mmx pentium_pro 
> pentium+mmx pentium i486 i386 i86"
>
> The code that fills "sun.cpu.isalist" on Soliaris/Linux is following
>
> #ifdef SI_ISALIST
>     /* supported instruction sets */
>     {
>         char list[258];
>         sysinfo(SI_ISALIST, list, sizeof(list));
>         sprops.cpu_isalist = strdup(list);
>     }
> #else
>     sprops.cpu_isalist = NULL;
> #endif
>
> and in order to use sysinfo(SI_ISALIST) API we have to include header
>
> #include <sys/systeminfo.h>
>
> However this header is not included in java_props_md.c!
> So, neither Solaris nor Linux fills "sun.cpu.isalist". Only Windows does.
> But again Windows does this slightly differently. It shows
> "amd64" on 64bit jre and
> "pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86" on 32bit.
>
> I can find only this bug report, which is likely related to the issue.
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6340855
> sun.cpu.isalist property is empty in jinfo
>
> It seems that this property hasn't been not filled properly so long. 
> Is it hard drop it at all?
Good sleuthing. It looks like jdk5 was the last release to compile in 
that code on Solaris. This does support the case for removing it.

-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20110216/eae19d29/attachment.html>


More information about the core-libs-dev mailing list