提交 ce038271 编写于 作者: E erikj

8014513: Sjavac doesn't detect 32-bit jvm properly

Reviewed-by: jjg
上级 4e57721c
...@@ -136,7 +136,8 @@ public class CompileJavaPackages implements Transformer { ...@@ -136,7 +136,8 @@ public class CompileJavaPackages implements Transformer {
// for each compile..... // for each compile.....
int kbPerFile = 175; int kbPerFile = 175;
String osarch = System.getProperty("os.arch"); 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 // For 32 bit platforms, assume it is slightly smaller
// because of smaller object headers and pointers. // because of smaller object headers and pointers.
kbPerFile = 119; kbPerFile = 119;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册