Re: RFR: 8329862: GetApplicationHome and GetApplicationHomeFromDll enhance jli tracing [v4]

2024-04-25 Thread Alan Bateman
On Tue, 23 Apr 2024 14:29:05 GMT, Matthias Baesken  wrote:

> 
> `/* Does the app ship a private JRE in /jre directory? */`
> 
> part meant? This looks indeed obsolete .

Yes, this is code that doesn't make sense since JDK 9 and should be 
removed/cleanup at some point. I suspect we had to leave it at the time because 
of the issue of installers copying java.exe into a shared location and 
expecting it to work with any JRE or JDK release, something that doesn't make 
sense now of course.

-

PR Comment: https://git.openjdk.org/jdk/pull/18699#issuecomment-2077120542


Re: RFR: 8329862: GetApplicationHome and GetApplicationHomeFromDll enhance jli tracing [v4]

2024-04-23 Thread Matthias Baesken
On Fri, 19 Apr 2024 10:07:22 GMT, Matthias Baesken  wrote:

>> We have already good JLI tracing capabilities. But GetApplicationHome and 
>> GetApplicationHomeFromDll lack some tracing and should be enhanced.
>
> Matthias Baesken has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   remove launcher executable path trace output

I adjusted the output ot 'JRE path' .

>  The GetJREPath function has no business looking for jre/lib as that location 
> does not exist since JDK 9.

Is the at/below

`/* Does the app ship a private JRE in /jre directory? */`

part meant? This looks indeed obsolete .

-

PR Comment: https://git.openjdk.org/jdk/pull/18699#issuecomment-2072472623


Re: RFR: 8329862: GetApplicationHome and GetApplicationHomeFromDll enhance jli tracing [v4]

2024-04-23 Thread Alan Bateman
On Mon, 22 Apr 2024 11:57:19 GMT, Alan Bateman  wrote:

>> Hi, any additional comments / reviews ?
>> Thanks Matthias
>
>> Hi, any additional comments / reviews ? Thanks Matthias
> 
> It still looks like left over trace messages from a debugging session, need 
> to think about about what tracing make sense here.

> @AlanBateman If this is not acceptable to add, I must once again iterate my 
> question: What is the use case for the tracing functionality then?

The tracing was mostly for the options and timing when it was originally added. 
 I don't object to expanding the tracing. The issue is that the proposed 
additions are inconsistent with the existing trace messages, e.g.  GetJREPath's 
existing trace messages use "JRE path", the proposed messages switch to "JRE 
location".

BTW:  the vestiges of the "JRE" should really be removed. The GetJREPath 
function has no business looking for jre/lib as that location does not exist 
since JDK 9.

-

PR Comment: https://git.openjdk.org/jdk/pull/18699#issuecomment-2072415065


Re: RFR: 8329862: GetApplicationHome and GetApplicationHomeFromDll enhance jli tracing [v4]

2024-04-23 Thread Magnus Ihse Bursie
On Fri, 19 Apr 2024 10:07:22 GMT, Matthias Baesken  wrote:

>> We have already good JLI tracing capabilities. But GetApplicationHome and 
>> GetApplicationHomeFromDll lack some tracing and should be enhanced.
>
> Matthias Baesken has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   remove launcher executable path trace output

I agree; the launcher uses two different modes for discovery. If you want to 
troubleshoot, knowing which of these are attempted is helpful. 

@AlanBateman If this is not acceptable to add, I must once again iterate my 
question: What is the use case for the tracing functionality then?

-

PR Comment: https://git.openjdk.org/jdk/pull/18699#issuecomment-2072349646


Re: RFR: 8329862: GetApplicationHome and GetApplicationHomeFromDll enhance jli tracing [v4]

2024-04-23 Thread Matthias Baesken
On Mon, 22 Apr 2024 17:19:14 GMT, Magnus Ihse Bursie  wrote:

> But that sounds like a very special case.

Not sure if it is really such a special case.  Currently both modes (getting 
the image path from launcher binary path , and getting the image path from 'the 
dll' / GetApplicationHomeFromDll  (libjli.so on Linux)  exist and are to my 
knowledge supported.  At least one jtreg test fails when the 
GetApplicationHomeFromDll  does not work any more.
So I think it is natural that both modes are also supported/augmented by some 
tracing.
We could probably reduce the trace message(s) added to just one if this is 
desired .

-

PR Comment: https://git.openjdk.org/jdk/pull/18699#issuecomment-2072090837


Re: RFR: 8329862: GetApplicationHome and GetApplicationHomeFromDll enhance jli tracing [v4]

2024-04-22 Thread Christoph Langer
On Fri, 19 Apr 2024 10:07:22 GMT, Matthias Baesken  wrote:

>> We have already good JLI tracing capabilities. But GetApplicationHome and 
>> GetApplicationHomeFromDll lack some tracing and should be enhanced.
>
> Matthias Baesken has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   remove launcher executable path trace output

It helped to understand the issue behind 
https://bugs.openjdk.org/browse/JDK-8329653

-

PR Comment: https://git.openjdk.org/jdk/pull/18699#issuecomment-2070365643


Re: RFR: 8329862: GetApplicationHome and GetApplicationHomeFromDll enhance jli tracing [v4]

2024-04-22 Thread Magnus Ihse Bursie
On Fri, 19 Apr 2024 10:07:22 GMT, Matthias Baesken  wrote:

>> We have already good JLI tracing capabilities. But GetApplicationHome and 
>> GetApplicationHomeFromDll lack some tracing and should be enhanced.
>
> Matthias Baesken has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   remove launcher executable path trace output

What is the use case for this tracing functionality? I recently was quite 
helped by it when debugging static java launching. And in that case, the more 
logging the better. But that sounds like a very special case. Is this something 
that end users are supposed to use to help solve problems?

-

PR Comment: https://git.openjdk.org/jdk/pull/18699#issuecomment-2070309758


Re: RFR: 8329862: GetApplicationHome and GetApplicationHomeFromDll enhance jli tracing [v4]

2024-04-22 Thread Alan Bateman
On Mon, 22 Apr 2024 11:30:41 GMT, Matthias Baesken  wrote:

> Hi, any additional comments / reviews ? Thanks Matthias

It still looks like left over trace messages from a debugging session, need to 
think about about what tracing make sense here.

-

PR Comment: https://git.openjdk.org/jdk/pull/18699#issuecomment-2069209127


Re: RFR: 8329862: GetApplicationHome and GetApplicationHomeFromDll enhance jli tracing [v4]

2024-04-22 Thread Matthias Baesken
On Fri, 19 Apr 2024 10:07:22 GMT, Matthias Baesken  wrote:

>> We have already good JLI tracing capabilities. But GetApplicationHome and 
>> GetApplicationHomeFromDll lack some tracing and should be enhanced.
>
> Matthias Baesken has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   remove launcher executable path trace output

Hi, any additional comments / reviews ?
Thanks Matthias

-

PR Comment: https://git.openjdk.org/jdk/pull/18699#issuecomment-2069158463


Re: RFR: 8329862: GetApplicationHome and GetApplicationHomeFromDll enhance jli tracing [v4]

2024-04-19 Thread Matthias Baesken
> We have already good JLI tracing capabilities. But GetApplicationHome and 
> GetApplicationHomeFromDll lack some tracing and should be enhanced.

Matthias Baesken has updated the pull request incrementally with one additional 
commit since the last revision:

  remove launcher executable path trace output

-

Changes:
  - all: https://git.openjdk.org/jdk/pull/18699/files
  - new: https://git.openjdk.org/jdk/pull/18699/files/ddb3e0fe..8b7a9d58

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk=18699=03
 - incr: https://webrevs.openjdk.org/?repo=jdk=18699=02-03

  Stats: 4 lines in 2 files changed: 0 ins; 3 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/18699.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/18699/head:pull/18699

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