JDK-6340855 : sun.cpu.isalist property is empty in jinfo
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 6
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2005-10-24
  • Updated: 2013-05-15
Description
sun.cpu.isalist property reported by jinfo is empty.
The error is reproduced starting from JDK6.0b45.

jinfo from JDK6.0b44 works correctly.
I asked for more details from Katya and she sent the following e-mail:

"sun.cpu.isalist" property is empty as reported by 'jinifo'.

--------
 > JDK6b99/jinfo JAVA_PID
...
sun.io.unicode.encoding = UnicodeBig
sun.cpu.endian = little
sun.cpu.isalist =

VM Flags:



I did try on linux-i586, solaris-sparc, solaris-i586.

Comments
core-libs-dev thread is here: http://mail.openjdk.java.net/pipermail/core-libs-dev/2011-February/005895.html a possible modern use for such a thing is JDK-7088419 which needs to sense the presence of particular hardware features (CLMUL instruction) similar functionality is present in http://docs.oracle.com/javase/7/docs/api/java/lang/management/OperatingSystemMXBean.html part of which mirrors os.* properties
15-05-2013

EVALUATION Moving this bug to classes_lang. As discussed on the core-libs-dev list, the issue here is the code in src/solaris/native/java/lang/sys_props_md.c hasn't set this property since jdk5.
16-02-2011

EVALUATION I ran the following program: class Test { public static void main(String[] ar) { String isalist = System.getProperty("sun.cpu.isalist"); if (isalist.equals("")) { System.out.println("isalist is empty!"); } else { System.out.println(isalist); } } } Output on few machines: On Windows 2000: "isalist is empty!" On Solaris 10: "isalist is empty!" So, it seems that this property is set to empty string (I don't know why). Since, jinfo (SA) reads whatever is set in the target VM, this does not appear to be a bug with jinfo (SA).
04-10-2006