Mercurial > hg > truffle
changeset 11994:b67604b59546
7073961: [TESTBUG] closed/runtime/4845371/DBB.java failed on solaris 10 X65
Summary: Added a x86 64-bit Solaris shared library and rewrote test in Java
Reviewed-by: dholmes, ctornqvi
author | hseigel |
---|---|
date | Sun, 04 Aug 2013 16:30:53 -0400 |
parents | f9ee986a9fea |
children | 9064e3a19525 |
files | test/testlibrary/com/oracle/java/testlibrary/Platform.java |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/test/testlibrary/com/oracle/java/testlibrary/Platform.java Tue Jul 30 14:14:25 2013 -0700 +++ b/test/testlibrary/com/oracle/java/testlibrary/Platform.java Sun Aug 04 16:30:53 2013 -0400 @@ -27,6 +27,7 @@ private static final String osName = System.getProperty("os.name"); private static final String dataModel = System.getProperty("sun.arch.data.model"); private static final String vmVersion = System.getProperty("java.vm.version"); + private static final String osArch = System.getProperty("os.arch"); public static boolean is64bit() { return dataModel.equals("64"); @@ -59,4 +60,14 @@ public static String getVMVersion() { return vmVersion; } + + // Returns true for sparc and sparcv9. + public static boolean isSparc() { + return osArch.toLowerCase().startsWith("sparc"); + } + + public static String getOsArch() { + return osArch; + } + }