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

Christian Thalinger christian.thalinger at oracle.com
Fri Feb 22 19:44:34 PST 2013


On Feb 22, 2013, at 4:39 PM, Coleen Phillimore <coleen.phillimore at oracle.com> wrote:

> On 2/22/2013 6:21 PM, 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.
>> 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.
> 
> I use the hotspot script on linux to debug with -gdb, ie:
> 
> hotspot -gdb <command line arguments>
> 
> It works really well!  So the gamma launcher is really good for debugging without having to do odd things like ^C or PauseVMAtStartup to set breakpoints after libjvm.so is loaded. How else can you debug this?

Probably the easiest way in both GDB and DBX is to run the VM once without arguments and set the breakpoints then.  At that point all libraries are loaded.

-- Chris

> 
> For testing, I copy the jvm into a jdk binary.
> 
> Coleen
>> 
>> -- Chris
>> 
>>> 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