mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-11 05:59:52 +00:00
8014513: Sjavac doesn't detect 32-bit jvm properly
Reviewed-by: jjg
This commit is contained in:
parent
a2c99b7e5c
commit
7cdf8d8a08
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user