United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 7130404 [macosx] "os.arch" value should be "x86_64" for compatibility with Apple JDK6
7130404 : [macosx] "os.arch" value should be "x86_64" for compatibility with Apple JDK6

Details
Type:
Bug
Submit Date:
2012-01-16
Status:
Closed
Updated Date:
2013-04-25
Project Name:
JDK
Resolved Date:
2012-04-16
Component:
infrastructure
OS:
os_x
Sub-Component:
build
CPU:
x86,generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7,7u4
Fixed Versions:
7u4

Related Reports
Backport:
Backport:
Backport:
Duplicate:
Relates:
Relates:
Relates:
Relates:
Relates:

Sub Tasks

Description
Current jdk7u-osx workspace doesn't build if ALT_BOOTDIR is set to the latest JDK7 build. The root cause is that "os.arch" system property value is different between Apple JDK6 and Oracle JDK7, x86_64 and amd64 respectively.
Expanding the scope to also cover adjustments to os.name...

< osName.startWith("Mac OS X")
> osName.contains("OS X")

Many of the files overlap and it's convenient to do both as part of the work for this bug.
CCC request approved...

   http://ccc.sfbay/7130404
Simple testcase...

public class P {
  public static void main(String args []) {
    System.out.println(System.getProperty("os.name"));
    System.out.println(System.getProperty("os.arch"));
  }
}

Test passes if the following is written to stdout...

Mac OS X
x86_64

                                    

Comments
EVALUATION

http://hg.openjdk.java.net/hsx/hsx23/hotspot/rev/ad5eb0a72fb1
                                     
2012-03-23
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/970cbbba54b0
                                     
2012-03-16
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-main/hotspot/rev/970cbbba54b0
                                     
2012-03-16
EVALUATION

Converted callsites and code logic for os.arch and os.name to reflect proper Mac OS X values.
                                     
2012-02-23



Hardware and Software, Engineered to Work Together