United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7125793 MAC: test_gamma should always work
JDK-7125793 : MAC: test_gamma should always work

Details
Type:
Bug
Submit Date:
2011-12-29
Status:
Closed
Updated Date:
2012-05-02
Project Name:
JDK
Resolved Date:
2012-03-24
Component:
hotspot
OS:
os_x
Sub-Component:
build
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7u4
Fixed Versions:
hs23 (b12)

Related Reports
Backport:
Backport:

Sub Tasks

Description
Java on Mac OS X has a different layout.  There are no arch subdirs in jre/lib.  The 'gamma' JVM simplified launcher needs to understand the new layout.  Furthermore, the test_gamma generated script should always pass, when run during the build process.

NOTE: Early bugs for the Mac port were filed in Jira.  This bug shadows the following bug in Jira...

http://java.net/jira/browse/MACOSX_PORT-214


*** (#1 of 1): [ UNSAVED ] ###@###.###

                                    

Comments
EVALUATION

Several issues were discovered in the gamma launcher and test_gamma script...

1) need to add support for new layout on Mac OS X

2) gamma loads libjava.dylib from JAVA_HOME which links to various Mac frameworks.  Symbol resolution in these frameworks inadvertently uses libjpeg.dylib in JAVA_HOME.  To resolve, gamma needs to be statically linked with the CoreFoundation framework.

3) test_gamma sets DYLD_LIBRARY_PATH.  This disrupts the real java launcher in JAVA_HOME.  It should only be set in the environment for gamma runs.  Otherwise, libjava.dylib cannot be found.
                                     
2011-12-29
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/e8a4934564b2
                                     
2012-01-25
SUGGESTED FIX

See attached patch.
                                     
2012-01-25
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-main/hotspot/rev/e8a4934564b2
                                     
2012-01-27
EVALUATION

http://hg.openjdk.java.net/lambda/lambda/hotspot/rev/e8a4934564b2
                                     
2012-03-22



Hardware and Software, Engineered to Work Together