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

2024-04-18 Thread Alan Bateman
On Tue, 16 Apr 2024 14:29:13 GMT, Matthias Baesken  wrote:

>> src/java.base/windows/native/libjli/java_md.c line 326:
>> 
>>> 324: }
>>> 325: 
>>> 326: JLI_TraceLauncher("GetJREPath - attempt to get JRE location from 
>>> shared lib of the image\n");
>> 
>> Maybe add a trace also in the USE_REGISTRY_LOOKUP section
>
> Hi Christoph, seems the USE_REGISTRY_LOOKUP is currently unused  (at least 
> without additional defines that are not present usually) 
> 
> src/java.base/windows/native/libjli/java_md.c:52:#ifdef USE_REGISTRY_LOOKUP
> src/java.base/windows/native/libjli/java_md.c:333:#ifdef USE_REGISTRY_LOOKUP
> 
> 
> I am not sure if this even works any more.  Maybe Alan could comment on this ?

@MBaesken I checked into the building with -DUSE_REGISTRY_LOOKUP as that 
compiled in code that the Oracle installer needed when it copied java.exe to 
somewhere. This is indeed left over code and can be removed from java_md.c.

-

PR Review Comment: https://git.openjdk.org/jdk/pull/18699#discussion_r1570072071


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

2024-04-17 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:

  adjust trace messages

-

Changes:
  - all: https://git.openjdk.org/jdk/pull/18699/files
  - new: https://git.openjdk.org/jdk/pull/18699/files/128300a0..344d1b89

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

  Stats: 10 lines in 3 files changed: 0 ins; 4 del; 6 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