RFR: 8350869: os::stat doesn't follow symlinks on Windows [v5]

Anton Artemov duke at openjdk.org
Tue May 20 12:22:36 UTC 2025


> This PR addresses an issue on Windows, where a class file could not be loaded by a symbolic link. 
> 
> I added a check if a wide path is a symbolic link (soft one) and a method for dereferencing. Both os::stat() and os::open() on Windows now can handle such links.
> 
> Tested in tiers 1-3. A separate test added.

Anton Artemov has updated the pull request incrementally with one additional commit since the last revision:

  8350869: Clean up of the test, error handling in get_path_to_target

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/25233/files
  - new: https://git.openjdk.org/jdk/pull/25233/files/a444fa93..f541fd6b

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=25233&range=04
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=25233&range=03-04

  Stats: 14 lines in 2 files changed: 7 ins; 2 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/25233.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25233/head:pull/25233

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


More information about the hotspot-runtime-dev mailing list