On 23/02/2013 1:55 PM, Christian Thalinger wrote:
I talked to a lot of people about this today.  What we really want is to not 
run tests when we build.  Mikael and I were looking into how we could do that 
without gamma and there is a way:

http://cr.openjdk.java.net/~twisti/8006965/

This would be the first of three fixes:

Fix 1)  The patch above removes test_gamma and uses some weirdness in the VM 
(-Dsun.java.launcher=gamma) to run it with an existing JDK; add 
test_{product,fastdebug,debug} targets

This logic is not suitable:

 541 # Testing the built JVM
 542 ifeq ($(JAVA_HOME),)
543 RUN_JVM=JAVA_HOME=$(JDK_IMPORT_PATH) $(JDK_IMPORT_PATH)/bin/java -d$(ARCH_DATA_MODEL) -server -XXaltjvm=$(MISC_DIR)/$(VM_FLAVOR) -Dsun.java.launcher=gamma
 544 else
545 RUN_JVM=$(JAVA_HOME)/bin/java -d$(ARCH_DATA_MODEL) -server -XXaltjvm=$(MISC_DIR)/$(VM_FLAVOR) -Dsun.java.launcher=gamma
 546 endif

I have JAVA_HOME set in my environment for use by other tools/scripts and it points at JDK7. The existing logic does not use my environments JAVA_HOME setting so neither should the revised logic!

I also don't see why the above sets JAVA_HOME at #543 - what will read that environment variable?

I still have concerns over what JDK_IMPORT_PATH will point to for different JDK builders.

And this addition still makes no sense to me:

 MAKE_ARGS += BOOTDIR=$(ABS_BOOTDIR)

Why do you need to add BOOTDIR to the MAKE_ARGS?

David


Fix 2)  Remove gamma and all the ugly code that comes with it (copies of the 
jdk launcher in hotspot and other pieces); make the hotspot script work like 
the test targets in Fix 1

Fix 3)  Remove the -Dsun.java.launcher=gamma and possibly replace the existing 
-Dsun.boot.library.path weirdness by explicit command line options like 
-Xbootlibrarypath:{/p,/a}

-- Chris

On Feb 22, 2013, at 3:21 PM, Christian Thalinger 
<christian.thalin...@oracle.com> wrote:


On Feb 22, 2013, at 12:58 AM, Staffan Larsen <staffan.lar...@oracle.com> wrote:

I'm not sure what the correct solution is, but when you do find out, the 
jdkpath.sh target should also be updated.

How many are actually using the hotspot script?  Would people be very 
sentimental if we would remove the gamma launcher altogether?

Taking to people here it seems that most are copying their libjvm into a JDK 
and use java anyway.

-- Chris


Thanks,
/Staffan

On 22 feb 2013, at 03:40, Christian Thalinger <christian.thalin...@oracle.com> 
wrote:

http://cr.openjdk.java.net/~twisti/8006965

8006965: test_gamma should run with import JDK
Reviewed-by:

Right now test_gamma runs with the boot JDK which is JDK n-1 (where
JDK n is the version we are actually compiling for).  This setup is
unsupported and thus should not be done during HotSpot builds.

The fix is to always use JDK_IMPORT_PATH instead of JAVA_HOME when
running test_gamma.

make/bsd/makefiles/buildtree.make
make/defs.make
make/linux/makefiles/buildtree.make
make/solaris/makefiles/buildtree.make




Reply via email to