RFR (S): 8006965: test_gamma should run with import JDK

Christian Thalinger christian.thalinger at oracle.com
Fri Feb 22 14:16:41 PST 2013


On Feb 22, 2013, at 12:23 PM, Vladimir Kozlov <vladimir.kozlov at oracle.com> wrote:

> > The question is what is/was HOTSPOT_DBXWARE?
> 
> I never used or heard about HOTSPOT_DBXWARE. I think we should ask original author :) :

Not sure if John's replying but he said that it was there before and he kept it.  I couldn't find any reference to HOTSPOT_DBXWARE on our internal websites so I think we could get rid of it.

Regarding env.csh, test_gamma always uses sh (and in fact sources env.sh unconditionally) so it's not required by the build.

-- Chris

> 
> s 00189/00000/00000
> d D 1.1 00/03/22 15:32:37 jcoomes 1 0
> c Build tree generation with dependency checking plus clean up of
> c generated scripts.  test_gamma skips the test for product builds (which
> c must be installed in a JDK to run); generated .dbxrc will source the
> c file pointed to by env var $HOTSPOT_DBXWARE if it exists.
> 
> Thanks,
> Vladimir
> 
> On 2/22/13 12:10 PM, Christian Thalinger wrote:
>> 
>> On Feb 22, 2013, at 11:39 AM, Vladimir Kozlov <vladimir.kozlov at oracle.com> wrote:
>> 
>>> On 2/22/13 11:04 AM, Christian Thalinger wrote:
>>>> 
>>>> On Feb 22, 2013, at 9:29 AM, Mikael Vidstedt <mikael.vidstedt at oracle.com> wrote:
>>>> 
>>>>> On 2013-02-22 08:48, Christian Thalinger wrote:
>>>>>> On Feb 22, 2013, at 12:58 AM, Staffan Larsen <staffan.larsen at 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.
>>>>>> That file is in the JDK I suppose?  -- Chris
>>>>> 
>>>>> The jdkpath.sh file is generated as part of building hotspot, see buildtree.make in the various OS specific make directories.
>>>> 
>>>> Oh.  The other script.  What is actually env.csh used for?  Or .dbxrc?  Anyone using these files?
>>> 
>>> They are used for incremental build and debugging using gamma:
>>> 
>>> "cd solaris_amd64_compiler2/jvmg; gnumake; dbx gamma"
>>> 
>>> I work this way.
>> 
>> But DBX picks up your ~/.dbxrc by default anyway and the file only contains:
>> 
>> $ cat .dbxrc
>> echo '# Loading solaris_amd64_graal/product/.dbxrc'
>> if [ -f "${HOTSPOT_DBXWARE}" ]
>> then
>>         source "${HOTSPOT_DBXWARE}"
>> elif [ -f "$HOME/.dbxrc" ]
>> then
>>         source "$HOME/.dbxrc"
>> fi
>> 
>> The question is what is/was HOTSPOT_DBXWARE?
>> 
>> -- Chris
>> 
>>> 
>>> Vladimir
>>> 
>>>> 
>>>> -- Chris
>>>> 
>>>>> 
>>>>> Cheers,
>>>>> Mikael
>>>>> 
>>>>>> 
>>>>>>> Thanks,
>>>>>>> /Staffan
>>>>>>> 
>>>>>>> On 22 feb 2013, at 03:40, Christian Thalinger <christian.thalinger at 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
>>>>> 
>>>> 
>> 



More information about the hotspot-dev mailing list