Withdrawn: 8293806: JDK_JAVA_OPTIONS picked up twice if launcher re-executes itself

duke duke at openjdk.org
Wed Jun 7 11:00:10 UTC 2023


On Tue, 6 Dec 2022 14:04:44 GMT, Dmitry Samersoff <dsamersoff at openjdk.org> wrote:

> If the user has set LD_LIBRARY_PATH to use a particular libjvm.so, options from the JDK_JAVA_OPTIONS environment variable are picked up twice.
> 
> If an option cannot be accepted twice (e.g., -agentlib), the application fails to start.
> 
> The same happens on operating systems that doesn't support $RPATH/$ORIGIN and always have to set LD_LIBRARY_PATH and re-exec the launcher.
> 
> This fix takes the approach to re-launch as early as possible, as discussed here:
> 
> https://github.com/openjdk/jdk/pull/10430
> 
> This PR consists of three commits:
> 1. Cleanup of java_md.c
> 2. The implementation of early re-launch
> 3. Performance optimization
> 
> @AlanBateman, @dholmes-ora Alan, David - any comments are appreciated.

This pull request has been closed without being integrated.

-------------

PR: https://git.openjdk.org/jdk/pull/11538


More information about the core-libs-dev mailing list