From ce038271c5e332dbe27fd167845a2b571f3685fd Mon Sep 17 00:00:00 2001 From: erikj Date: Thu, 27 Jun 2013 10:35:36 +0200 Subject: [PATCH] 8014513: Sjavac doesn't detect 32-bit jvm properly Reviewed-by: jjg --- .../classes/com/sun/tools/sjavac/CompileJavaPackages.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/share/classes/com/sun/tools/sjavac/CompileJavaPackages.java b/src/share/classes/com/sun/tools/sjavac/CompileJavaPackages.java index d559de8a..d3e8769e 100644 --- a/src/share/classes/com/sun/tools/sjavac/CompileJavaPackages.java +++ b/src/share/classes/com/sun/tools/sjavac/CompileJavaPackages.java @@ -136,7 +136,8 @@ public class CompileJavaPackages implements Transformer { // 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; -- GitLab