8014513: Sjavac doesn't detect 32-bit jvm properly
authorerikj
Thu, 27 Jun 2013 10:35:36 +0200
changeset 18654 a88a4509ca4a
parent 18653 1407564fb956
child 18655 7a0cee6fc171
8014513: Sjavac doesn't detect 32-bit jvm properly Reviewed-by: jjg
langtools/src/share/classes/com/sun/tools/sjavac/CompileJavaPackages.java
--- a/langtools/src/share/classes/com/sun/tools/sjavac/CompileJavaPackages.java	Thu Jun 27 00:37:13 2013 -0400
+++ b/langtools/src/share/classes/com/sun/tools/sjavac/CompileJavaPackages.java	Thu Jun 27 10:35:36 2013 +0200
@@ -136,7 +136,8 @@
         // for each compile.....
         int kbPerFile = 175;
         String osarch = System.getProperty("os.arch");
-        if (osarch.equals("i386")) {
+        String dataModel = System.getProperty("sun.arch.data.model");
+        if ("32".equals(dataModel)) {
             // For 32 bit platforms, assume it is slightly smaller
             // because of smaller object headers and pointers.
             kbPerFile = 119;