7073961: [TESTBUG] closed/runtime/4845371/DBB.java failed on solaris 10 X65
authorhseigel
Sun, 04 Aug 2013 16:30:53 -0400
changeset 19150 32f41bad4250
parent 18988 0e7cbc5c39ec
child 19151 0b9fca75c726
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
hotspot/test/testlibrary/com/oracle/java/testlibrary/Platform.java
--- a/hotspot/test/testlibrary/com/oracle/java/testlibrary/Platform.java	Tue Jul 30 14:14:25 2013 -0700
+++ b/hotspot/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;
+  }
+
 }