# HG changeset patch # User erikj # Date 1372322136 -7200 # Node ID a88a4509ca4a540ebe64f4c4f684f8a300f38f6f # Parent 1407564fb95677cbb5b2d769ad8ef9c91c7873c5 8014513: Sjavac doesn't detect 32-bit jvm properly Reviewed-by: jjg diff -r 1407564fb956 -r a88a4509ca4a 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;