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

Reviewed-by: jjg
This commit is contained in:
Erik Joelsson 2013-06-27 10:35:36 +02:00
parent a2c99b7e5c
commit 7cdf8d8a08

View file

@ -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;