On Mon, 26 Sep 2022 18:15:17 GMT, Dmitry Samersoff <dsamers...@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.
> 
> The fix adds one additional argument - orig_argv to JLI_Launch() and use it 
> in on relaunch in execv() call.
> 
> All relevant jtreg tests are passed.

I'm still somewhat perplexed as the launcher appears to to try and deal with 
this as I said before "see JLI_AddArgsFromEnvVar and the use of the relaunch 
field". So something seems amiss here. If that logic is not supposed to deal 
with the current problem, then what exactly is it intended for?

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

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

Reply via email to