mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
8014513: Sjavac doesn't detect 32-bit jvm properly
Reviewed-by: jjg
This commit is contained in:
parent
a2c99b7e5c
commit
7cdf8d8a08
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue