changeset 1860:dcc6a52bf363

8014513: Sjavac doesn't detect 32-bit jvm properly Reviewed-by: jjg
author erikj
date Thu, 27 Jun 2013 10:35:36 +0200
parents c674b396827c
children a47e28759666
files src/share/classes/com/sun/tools/sjavac/CompileJavaPackages.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/sjavac/CompileJavaPackages.java	Thu Jun 27 00:37:13 2013 -0400
+++ b/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;