Review request 6981484: Update development launcher

Coleen Phillimore coleen.phillimore at oracle.com
Fri Oct 1 09:21:38 PDT 2010


I reviewed this, and I think it looks great.  A couple of comments:

http://cr.openjdk.java.net/~sla/6981484/webrev.04/make/windows/makefiles/launcher.make.html

Did the lines about VS2005 come from the jdk version?  I don't think we 
ever supported VS2005 but maybe open source community does, so it's 
probably okay and safe to leave it there.

I was going to suggest testing it on the "control" build which is the 
top jdk build but I don't think this would affect the control build.  I 
can send you an easy way to do this.

Lastly, thank you for the extra work and investigation so that we only 
have one version in the VM.

Thanks,
Coleen

Staffan Larsen wrote:
>
> Hi All,
>
>  
>
> So, another shot: http://cr.openjdk.java.net/~sla/6981484/webrev.04/
>
>  
>
> This time I have based the launcher code on JDK 6u22. I am using the 
> same code for all platforms. Shared code are in 
> src/share/tools/launcher. To minimize code duplication I have placed 
> the shared solaris/linux code in src/os/posix/launcher. The windows 
> code is in src/os/windows/launcher.
>
>  
>
> The launcher is now called hotspot(.exe). It will choose the JDK to 
> use based on the values of JAVA_HOME or ALT_JAVA_HOME (the latter 
> takes precedence).
>
>  
>
> The windows launcher is a normal executable with dynamic linking of 
> jvm.dll. It has no special arguments.
>
>  
>
> The posix launcher is really a shell script that sets up 
> LD_LIBRARY_PATH and some other things before calling the executable. 
> The executable is still called gamma and is dynamically linked to 
> libjvm.so. The posix launcher accepts the following arguments:
>
>   -gdb: launches gdb and runs the launcher until libjvm.so is loaded 
> (to make it easier to set breakpoints)
>
>   -gud: same as -gdb, but launches emacs in gud-mode.
>
>   -dbx: launches dbx
>
>   -valgrind: launches in the valgrind environment (if available)
>
>  
>
> Thanks,
>
> /Staffan
>
>  
>
>  
>
> *From:* Coleen Phillimore
> *Sent:* den 22 september 2010 4:20
> *To:* Staffan Larsen
> *Cc:* Christian Thalinger; hotspot-dev at openjdk.java.net
> *Subject:* Re: Review request 6981484: Update development launcher
>
>  
>
>
> Hi Staffan,
> Is this file *src/os/windows/launcher/java.c**
> *the same as ./os/linux/launcher/java.c and ./os/solaris/launcher/java.c
> In fact, the sources in os/linux/launcher are almost exactly the same 
> as os/solaris/launcher.
> Can we have just one set?  Perhaps put it in directory 
> src/share/tools/launcher and make the makefiles use these sources 
> instead? Sorry to make more work but having the same 2000 lines of 
> code somewhere else, guarantees one copy will always be wrong.
>
> Thanks,
> Coleen
>
> On 09/22/10 08:38, Staffan Larsen wrote:
>
> Here we go again: http://cr.openjdk.java.net/~sla/6981484/webrev.03/ <http://cr.openjdk.java.net/%7Esla/6981484/webrev.03/>
>  
> Eventually, I'll get there...
>  
> Thanks,
> /Staffan
>  
> -----Original Message-----
> From: Christian Thalinger 
> Sent: den 22 september 2010 2:38
> To: Staffan Larsen
> Cc: hotspot-dev at openjdk.java.net <mailto:hotspot-dev at openjdk.java.net>
> Subject: RE: Review request 6981484: Update development launcher
>  
> On Wed, 2010-09-22 at 05:23 -0700, Staffan Larsen wrote:
>   
>
>     Thanks Christian - I obviously have some things to learn as a new
>
>     committer - didn't think about the copyrights :-)
>
>         
>
>  
> Sure.  I was going the same route :-)
>  
>   
>
>      
>
>     http://cr.openjdk.java.net/~sla/6981484/webrev.02/ <http://cr.openjdk.java.net/%7Esla/6981484/webrev.02/>
>
>      
>
>     Now with updated copyrights.
>
>         
>
>  
> As David already said.
>  
> -- Christian
>  
>   
>
>  
>


More information about the hotspot-dev mailing list